Commit graph

27641 commits

Author SHA1 Message Date
Christoph M. Becker
1a89eb1e2d
Close GH-1146: Loose comparison table incorrect for PHP 8
Cf. <https://3v4l.org/5tmej>.
2021-12-17 14:50:33 +01:00
Christoph M. Becker
44090248a8
Update set_error|exeception_handler $callback descriptions
First, the $callback is a callable, and users are supposed to either
know what that means, or look it up elsewhere in the documentation, so
there is no need to explain it here again, and let it rot again.

Second, there is no need anymore to document pre PHP 7.0.0 behavior.
2021-12-17 14:22:42 +01:00
othercorey
6f058bba94
Adjust fetchAll() purpose to match return description
Closes GH-1212.
2021-12-17 14:06:41 +01:00
Máté Kocsis
687aef09c8
Fix the optional param of CURLStringFile::__construct() (#1213) 2021-12-17 13:54:58 +01:00
Máté Kocsis
1c1619047e
Fix a few ext/reflection return types (#1208) 2021-12-16 14:28:35 +01:00
Christoph M. Becker
4e05f1d8fd
Fix #80078: openssl_dh_compute_key unknown parameters 2021-12-16 13:26:26 +01:00
Máté Kocsis
fa575325c8
Fix a few enum function/method signatures (#1207) 2021-12-16 12:59:13 +01:00
Christoph M. Becker
4ad4b2432e
Update GMP requirements
As of PHP 7.0.0, at least GMP 4.2 is required on POSIX systems.  On
Windows, MPIR is required instead.
2021-12-16 11:51:22 +01:00
Máté Kocsis
1f7fc39377
Change the order of union return type for XSLTProcessor::transformToXml()
To make it compatible with the output of gen_stub.php
2021-12-16 10:22:47 +01:00
Sergey Panteleev
98e904a628
Fix stream_select refpurpose 2021-12-16 12:19:30 +03:00
hakre
65d4ecb42e
PDOStatement colons for names in array example (#1094)
passing values for _named parameters_ in an array allows array keys to be
either the names of the named parameters or (alternatively) the names
prefixed with colons (<colon> : <U003A> COLON) mimicking the placeholders
in the SQL query.

therefore the examples should show first verbatim names as array keys and
then highlight the alternative syntax with colon suffix for the array keys
with a dedicated comment within the examples' code.

same applies to function parameters that represent the parameter name,
e.g. with `PDOStatement::bindParam()` or `PDOStatement::bindValue()` which
is the same as compared with the original `PDOStatement::execute()`.

additionally removed superfluous curly brackets in the first examples'
`$colour` string interpolation of `PDOStatement::execute()`.
2021-12-15 21:08:19 +00:00
Julien Fastré
770b67f36a
Mention question mark escape feature
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-1056.
2021-12-15 21:00:52 +01:00
Máté Kocsis
5b4252de4f
Generate various method synopses based on stubs
Closes GH-1015.
2021-12-15 20:08:13 +01:00
Máté Kocsis
c3067ab0a7
Generate a few ext/standard method synopses based on stubs - part 3
Co-authored-by: Sergey Panteleev <sergey@php.net>

Closes GH-1021.
2021-12-15 20:00:09 +01:00
Máté Kocsis
8244b3b053
Generate ext/zip class synopses from stubs
Closes GH-1066.
2021-12-15 19:56:59 +01:00
Máté Kocsis
2800b9fe1e
Generate ext/xmlreader and ext/xmlwriter class synopses from stubs
Closes GH-1068.
2021-12-15 19:55:38 +01:00
Máté Kocsis
df00465498
Generate ext/snmp class synopses from stubs
Closes GH-1119.
2021-12-15 19:54:21 +01:00
Máté Kocsis
642411772c
Generate ext/pdo class synopses from stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-1109.
2021-12-15 19:52:36 +01:00
Máté Kocsis
d231ec9e7d
Generate ext/oci8 class synopses from stubs
Closes GH-1105.
2021-12-15 19:01:20 +01:00
Máté Kocsis
cd46fa89d3
Generate php_user_filter class synopsis from stubs
Closes GH-1116.
2021-12-15 18:59:39 +01:00
Máté Kocsis
591a6aa1de
Display SessionUpdateTimestampHandlerInterface as an interface rather than a class
Closes GH-1107.
2021-12-15 18:33:43 +01:00
Máté Kocsis
4eb60e8132
[skip-revcheck] Generate ext/session class synopses from stubs 2021-12-15 18:32:56 +01:00
Thomas Landauer
1f7c271286
Document that enum cases are labels
Closes GH-1197.
2021-12-15 18:21:33 +01:00
Máté Kocsis
fbfbffff6b
Generate ext/gmp class synopses from stubs
Closes GH-1113.
2021-12-15 18:11:42 +01:00
Kai Wei
5eb55cda5c
Errors/Exceptions missing for chmod()
Closes GH-1203.
2021-12-15 17:39:37 +01:00
Tor Edvardsson
de14580fb3
Documentation for net_get_interfaces()
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-847.
2021-12-15 17:33:34 +01:00
Christoph M. Becker
afbe8ad5ba
Fix GH-1205: Multiple undocumented BC in DOM extension 2021-12-15 12:52:26 +01:00
Jeremy Mikola
d120d37cc9
BSON classes and CursorId implement Stringable
https://jira.mongodb.org/browse/PHPC-2007
2021-12-14 14:10:00 -05:00
Jeremy Mikola
dcfdf315b4
KMIP KMS provider and KMS TLS options
https://jira.mongodb.org/browse/PHPC-1912
https://jira.mongodb.org/browse/PHPC-2009
2021-12-14 13:54:44 -05:00
Jeremy Mikola
8502e6a26a
Add Binary::TYPE_COLUMN constant and update changelog
https://jira.mongodb.org/browse/PHPC-1942
https://jira.mongodb.org/browse/PHPC-1499
2021-12-14 13:51:25 -05:00
Dan
c36ce0b514
[8.0] Document remaining core changes
* document changes to `new` in php 8.0

* document php 8.0 changes for `instanceof`

* document php 8.0 change to `define`

Co-authored-by: Peter Cowburn <petercowburn@gmail.com>

Closes GH-1155.
2021-12-14 18:34:40 +01:00
Kamil Tekiela
5dfba3d91f
Add more implode examples
Closes GH-1195.
2021-12-13 14:07:29 +01:00
Tyson Andre
917c06eac8
Update runkit7 function documentation, names
Closes GH-1194.
2021-12-12 16:17:01 +01:00
Tyson Andre
8d226f128f
Link to spl_object_id from similar functions
Using an integer is faster and more memory-efficient than creating a 32-byte
string hash.

`runkit7_object_id` is one way to polyfill PHP 7.2+ `spl_object_id`
in older PHP 7 versions and continues to exist in the PECL.

Closes GH-1198.
2021-12-12 16:15:16 +01:00
Carlos C Soto
9d1833c496
Reword description on DOMDocument::domElement (#973)
* Reword documentElement clumsy description

* Reword "will return" to "evaluates to"
2021-12-11 19:14:58 -06:00
Christopher Jones
a48db6e7cd Document new function oci_set_prefetch_lob() 2021-12-11 23:18:09 +11:00
Kamil Tekiela
d83aa96e67
PHP 8.1: FILTER_SANITIZE_STRING is deprecated (#1193) 2021-12-10 14:25:58 +00:00
Christoph M. Becker
32cd7f679d
FILTER_FLAG_(SCHEME|HOST)_REQUIRED are removed as of PHP 8.0.0 2021-12-10 14:47:50 +01:00
Christoph M. Becker
730cbb0a7a
Fix GH-1192: setcookie() description is not updated
The exact date in the past may not matter too much, so we are
unspecific here.

And no, you can't set `$value` to false, because the parameter expects
a string.
2021-12-10 10:59:35 +01:00
Sergey Panteleev
92673cc45a
[PHP 8.1] Documentation for full_path entry of $_FILES (#1130)
Co-authored-by: Yoshinari Takaoka <mumumu@mumumu.org>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-12-10 10:16:31 +03:00
Christoph M. Becker
64a905b806
Delete luasandbox entity files
These are generated by ./configure, and are not supposed to be
committed to the repo.
2021-12-09 16:24:07 +01:00
Christoph M. Becker
c5c3a4153d
fopen() $mode is ignored for several php:// stream wrappers
Cf. <https://bugs.php.net/79905>.
2021-12-09 16:21:49 +01:00
Christoph M. Becker
fbba47c54e
Remove obsolete info regarding php://stdin 2021-12-09 16:13:27 +01:00
Christoph M. Becker
0219f62dcd
*Declaring* mandatory after optional parameters is deprecated
It's not about *passing* of the arguments.
2021-12-09 13:53:23 +01:00
Christoph M. Becker
d6eb5fda8a
Fix GH-1188: APCu Installation page is outdated 2021-12-09 12:51:30 +01:00
魔王卷子
690c3ea7c7
[skip-revcheck] fixed typo (#1187) 2021-12-09 10:12:38 +03:00
Christoph M. Becker
761f713125
Fix GH-1182: constant() throws Error exception as of PHP 8.0.0 2021-12-08 13:53:42 +01:00
Yoshinari Takaoka
39247cb926
[PHP 8.1] Document deprecated ctype non-string argument. (#1179)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-12-08 20:18:41 +09:00
Christoph M. Becker
8a7836bf88
Fix GH-1178: array_flip allegedly can return null 2021-12-08 11:29:58 +01:00
Christoph M. Becker
2790c0fd69
Fix GH-1181: Incorrect example for IntlDateFormatter::setPattern()
In addition to fixing the format specifiers, we also echo line breaks,
so the output matches the example code.
2021-12-08 11:23:17 +01:00