Commit graph

28045 commits

Author SHA1 Message Date
George Peter Banyard
830ac0be6d
Run section-order QA script on CI (#1498)
This prevents from introducing incorrect section orders
2022-04-04 18:16:52 +01:00
George Peter Banyard
a223531900 Fix section order issues introduced by 99d758bd25 2022-04-04 18:05:11 +01:00
USAMI Kenta
d4d537e6a2
PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY was added in PHP 8.1
The first change mentioned in the manual for PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY was 03f0ebc60c.

Then 607ec1f63c stated about the version to which the constant was added.
However, it incorrectly appends to `MYSQL_ATTR_LOCAL_INFILE` instead of `MYSQL_ATTR_LOCAL_INFILE_DIRECTORY`.

Closes GH-1502.
2022-04-04 13:12:22 +02:00
Laurent VOULLEMIER
64b3b8a362
Fix unpacking with string key example
The example seems not relevant since it already works and produces the same output in the previous PHP versions.

Closes GH-1501.
2022-04-04 12:29:44 +02:00
Rowan Tommins
99d758bd25
Improve documentation of string encoding conversion functions
- Move utf8_encode and utf8_decode into the strings chapter, since
  they were moved out of the XML extension in 7.2
- Recommend mb_convert_encoding, iconv, and UConverter::transcode
  when mentioning encoding in passing
- Document UConverter::transcode, based on examination of source
  and upstream ICU docs
- Make the language used more consistent, e.g. "convert" rather
  than "encode"/"decode", "encoding" rather than "charset"

Closes GH-1418.
2022-04-04 12:24:24 +02:00
Fabien Salathe
8b0e03372d
Remove "experimental" warning from Foreign Function Interface
Foreign Function Interface (FFI) has been introduced in 2019 (PHP 7.4) and the API didn't change since then, it should probably be considered safe to use it.

Closes GH-1495. Closes GH-1499.
2022-04-02 18:13:26 +02:00
George Peter Banyard
42aa8713e3 Fix section order in Imagick docs 2022-04-02 15:40:34 +01:00
George Peter Banyard
e84773a605
Add missing parameter sections for PDO methods (#1459) 2022-04-02 15:34:36 +01:00
George Peter Banyard
45ac957ca5 Add docs for SoapClient::__call() based on SoapClient::__soapCall()
Also drive-by fixes to both __call() and __soapCall() in regards to markup
2022-04-02 13:16:38 +01:00
Jakub Zelenka
87d151824d Document gnupg_listsignatures 2022-03-31 20:48:26 +01:00
Jakub Zelenka
1ea36ad22a Document gnupg_gettrustlist 2022-03-31 20:48:00 +01:00
Jakub Zelenka
91db48f3b3 Document gnupg_deletekey 2022-03-31 20:47:27 +01:00
Sergey Panteleev
6330e4d731
Add examples for string functions (#1477) 2022-03-31 10:41:58 -05:00
Sergey Panteleev
58c419eb2e
[PHP 8.1] Add pcntl_rfork description (#1033) 2022-03-31 10:41:26 -05:00
Michael Diodone
432e2731ee
Fix listing of unimplemented DOM methods
`DOMNamedNodeMap::removeNamedItem` is listed twice and I suspect the one after `DOMNamedNodeMap::setNamedItemNS` was meant to be `DOMNamedNodeMap::removeNamedItemNS` instead.

Closes GH-1491.
2022-03-31 16:07:03 +02:00
Máté Kocsis
72d156e206
Sync DirectoryIterator method return types (#1293) 2022-03-31 08:34:47 +02:00
Kévin Dunglas
15247c75e1
False isn't allowed for substr()'s $length (#984) 2022-03-30 16:37:31 -05:00
沈唁
431616624d
Fix array_combine throws ValueError since PHP 8 (#850) 2022-03-30 16:33:13 -05:00
Sergey Panteleev
08498c3bd3
[PHP 8.1] Use named arguments after unpacking (#1329) 2022-03-30 15:35:44 -05:00
Sergey Panteleev
fe35f4a173
[PHP 8.1] Add IntlDatePatternGenerator description (#1026)
* [PHP 8.1] Add IntlDatePatternGenerator description
2022-03-30 15:33:06 -05:00
Sergey Panteleev
18b39f03ef
[PHP 8.1] New in initializers (#1327)
* [PHP 8.1] New in initializers
2022-03-30 15:13:41 -05:00
Martin Samesch
48754af1a1
Fix return type (int → bool) (#1359)
* Fix return type (int → bool)

Mentioned in doc-de #67 by Daijobou (thanks).
Changelog entry?

* added changelog (thanks saundefined)

* Section returnvalues adjusted

* Forgot to adjust description.

* Update reference/imagick/imagick/getimagealphachannel.xml

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

* Correct purpose

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2022-03-29 20:15:14 +00:00
Kamil Tekiela
ab58951f68
Remove &warn.undocumented.func; from Reflection
Removed from all the places where it wasn't stricly necessary.

Closes GH-1217.
2022-03-29 16:49:06 +02:00
Theodore Brown
4a07033f7a
Improve description of empty return value
Previously it was written from the negative perspective, which was confusing to understand.

Closes GH-1430.
2022-03-29 15:21:54 +02:00
George Peter Banyard
33e5f4ef72
Fix constructorsynopsis usage in EV extension
Also drop return value section

Closes GH-1465.
2022-03-29 15:20:32 +02:00
Christoph M. Becker
e98c8aea66
Fix GH-1462: passthru() returnvalue section incorrect 2022-03-29 15:05:31 +02:00
Jakub Zelenka
7b935b2820 Update OpenSSL requirements 2022-03-28 19:54:44 +01:00
Sammy
210b5020c0
Add trailing semicolon to getDocComment
Although this is valid PHP, other functions' examples in the class (e.g. `getDefaultProperties` and `getConstructor`) contain this trailing semicolon.

Fixes GH-1432
Closes GH-1486.
2022-03-28 14:09:48 +02:00
Jakub Zelenka
615dc682cf Document FPM pm.max_spawn_rate configuration directive 2022-03-27 21:54:13 +01:00
Jakub Zelenka
aa4b1bf316 Document FPM pm.status_listen configuration directive 2022-03-27 21:49:51 +01:00
Jakub Zelenka
137a90008a Document FPM request_terminate_timeout_track_finished configuration directive 2022-03-27 21:42:13 +01:00
Jakub Zelenka
963a572c55 Document FPM apparmor_hat configuration directive 2022-03-27 20:25:26 +01:00
Jakub Zelenka
b3b678f37f Document FPM request_slowlog_trace_depth configuration directive 2022-03-27 20:12:43 +01:00
colshrapnel
e1cbbb434a
Fix the return value description
The comment in the source code [goes](04a4864b65/ext/pdo/pdo_stmt.c (L1152)) as "if there are no more rows" and doesn't mention any failure.

Closes GH-1480.
2022-03-25 11:23:54 +01:00
Jordi Boggiano
266f9f6b4b
Fix sqlsrv_rows_affected/db2_num_fields return type
Closes GH-1479.
2022-03-25 10:34:39 +01:00
Anton
2e7c5de96f
Fix "see also" for ReflectionFunction::__toString (#1473) 2022-03-21 15:12:38 +00:00
Kamil Tekiela
59af09939a
Remove double parentheses in assert 2022-03-20 21:21:08 +00:00
Bradley Taylor
883d2fe5cb
assert() no longer evaluates strings as of PHP 8.0.0
As per the PHP changelog, the functionality to use a string for `assert` has been removed in PHP 8.0: 69888c3ff1/UPGRADING (L350-L354)

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-1471.
2022-03-20 11:59:40 +01:00
Christoph M. Becker
443531f6c6
Fix GH-1467: SplObjectStorage::removeAll does not return the number of removed objects 2022-03-18 11:03:15 +01:00
George Peter Banyard
5c8ec52976
Add missing return value sections for SNMP functions
Also fix the return value for others at the same time
2022-03-16 22:00:21 +00:00
George Peter Banyard
ecaa214642
Fix de/constructor synopsis tag usage (#1457)
In Solr, Stomp, Yaf.

Also include constructor and destructor in StreamWrapper interface synopsis
2022-03-15 16:36:11 +00:00
沈唁
3ec1a6204f
Fix 5th param name description for odbc_foreignkeys() (#1461) 2022-03-14 14:25:05 +00:00
Christoph M. Becker
cc1ac298e0
Fix GH-1460: p format character only available as of PHP 8.0.0 2022-03-14 10:32:36 +01:00
Sergey Panteleev
d7c1097cca
Add pcntl_unshare description (#958)
* Add pcntl_unshare description

* Group pcntl constants
2022-03-13 23:55:35 +00:00
Matthieu Marcillaud
db43b3844a
Fix Phar methods which still exist in PHP 8. (#1405)
PharData::__construct
PharData::__destruct
PharFileInfo::compress
PharFileInfo::decompress

Closes Issue #1403
2022-03-13 23:50:44 +00:00
George Peter Banyard
41f8ef5540
Fix inconsistent section orders 2022-03-13 22:37:42 +00:00
Kamil Tekiela
104bc5c203
Modernize examples on connect_error & connect_errno (#1454) 2022-03-13 19:54:44 +00:00
George Peter Banyard
e9df25bfee
Revert "Fix de/constructor synopsis tag usage" commits.
Turns out this is not as easy as I thought >_>
2022-03-13 18:41:35 +00:00
George Peter Banyard
0c590ae06f
Fix de/constructor synopsis tag usage in Yaf docs 2022-03-13 18:28:49 +00:00
George Peter Banyard
9b32722fca
Fix de/constructor synopsis tag usage in Stomp docs 2022-03-13 18:24:22 +00:00