Commit graph

19445 commits

Author SHA1 Message Date
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
George Peter Banyard
002cf0e30e
Fix de/constructor synopsis tag usage in Stream docs 2022-03-13 18:22:00 +00:00
George Peter Banyard
dd2701db49
Fix de/constructor synopsis tag suage in SOLR docs 2022-03-13 18:20:53 +00:00
George Peter Banyard
a916b9bd3d
Fix method aliases in Event class (#687)
This also fixes the alias detection for the section order script
2022-03-13 18:11:31 +00:00
Juliette
03bb26ae70
PHP 8.1 | Update hash_algos() documentation
> **MurmurHash3**
>
> Added support for MurmurHash3 with streaming support. The following variants are implemented:
> * murmur3a, 32-bit hash
> * murmur3c, 128-bit hash for x86
> * murmur3f, 128-bit hash for x64
>
> **xxHash**
>
> Added support for xxHash. The following variants are implemented:
> * xxh32, 32-bit hash
> * xxh64, 64-bit hash
> * xxh3, 64-bit hash
> * xxh128, 128-bit hash

Refs:
* https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.hash.murmurhash3
* https://github.com/php/php-src/pull/6059
* 72e91e9fc8
* https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.hash.xxhash
* https://github.com/php/php-src/pull/6524
* 23590f7c53

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>

Closes GH-1451.
2022-03-11 14:20:23 +01:00
Kim Hallberg
2b5457cc2d
Fix CURLFile multiple files examples (#1446) 2022-03-11 10:18:34 +08:00
Jeremy Mikola
930b6389f9
Fix id for TopologyDescription::TYPE_LOAD_BALANCED
Fixes a build failure from bd6e6603b4
2022-03-03 17:18:34 -05:00
Jeremy Mikola
bd6e6603b4
SDAM monitoring classes and server/topology descriptions
https://jira.mongodb.org/browse/PHPC-1150
2022-03-03 17:15:48 -05:00
Christoph M. Becker
ace6b151ca
Fix GH-1437: Missing return type false for apcu_sma_info() in description 2022-03-03 11:05:07 +01:00
Christoph M. Becker
e8c83816e0
array_map() maps values, not indexes
Cf. <https://news-web.php.net/php.doc/969388082>.
2022-03-02 13:22:41 +01:00
Jordi Boggiano
ddce0c4643
Add default value to setFetchMode's $constructorArgs with FETCH_CLASS
Closes GH-1436.
2022-03-02 10:48:19 +01:00
Jeremy Mikola
fbe040bfc2
Document "srvMaxHosts" and "srvServiceName" URI options
https://jira.mongodb.org/browse/PHPC-1900
https://jira.mongodb.org/browse/PHPC-1908
2022-03-01 20:22:55 -05:00
Jeremy Mikola
d5127e7728
Document MongoDB\Driver\Session::isDirty()
https://jira.mongodb.org/browse/PHPC-2003
2022-03-01 20:16:55 -05:00
Sergey Panteleev
10717d8226
[skip-revcheck] Fix typo 2022-03-01 10:52:24 +03:00
Jakub Zelenka
fab4ea95f4
FPM Status Page (#1420)
* Documentation for the FPM status page and fpm_get_status()

* FPM status page: Update date/time format documentation

* FPM status page: Add information on openmetrics format (PHP 8.1+)

* Fix fpm_get_status referencing file name

* Update FPM status page documentation

* Move FPM status configuration to section

* Improve FPM Status Page formatting and move it under Observability

* Improve FPM status CS

Co-authored-by: AllenJB <github@allenjb.me.uk>
2022-02-28 21:56:30 +00:00
Christoph M. Becker
f12b401043
Fix GH-1397: autounlock parameter in constructor is actually int not bool 2022-02-28 14:44:34 +01:00
Christoph M. Becker
d5ba7eb2cd
Fix GH-1398: PDO::pgsqlGetNotify inconsistent return type 2022-02-28 14:39:36 +01:00
Christoph M. Becker
91da56315c
Fix GH-1402: PHP 8.* ZTS wrong compilation flag for Linux 2022-02-28 14:34:15 +01:00
Christoph M. Becker
604002c979
Fix GH-1433: SplFixedArray changelog states IteratorAggregate happened in 8.1 2022-02-28 13:19:23 +01:00
Ariel Allon
8b00eb9807
disambiguate semantics of search_value
The definition of `search_value` in "Parameters" is a bit ambiguous. "these values" _could_ be interpreted to mean that if an array is passed as the `$search_value`, keys of elements of `$search_value` that match _any_ of those `$array` elements will be returned.
Note, the "Description" section does not have this ambiguity as it states "that value" instead of "those values".

Closes GH-1429.
2022-02-25 12:52:44 +01:00
Steve Thomas
f93ab9943c
password_verify is capable of verifying crypt hashes
Closes GH-1424.
2022-02-22 17:15:50 +01:00
Christoph M. Becker
195fde0082
Fix GH-1421: A relic of old editing in manual page function.parse-url 2022-02-21 10:05:49 +01:00
aleksandr-shevchenko
9b89d5c26b
Improve description of step argument to range()
Closes GH-1416
2022-02-20 17:17:21 +00:00
Abolfazl
424ecfb1e3
SyncSharedMemory::size() returns int
Closes GH-1417.
2022-02-20 10:44:41 +01:00
Christoph M. Becker
554db5a3a3
Fix further xref misuse
Cf. <https://github.com/php/doc-en/issues/1415#issuecomment-1044334812>.
2022-02-18 13:19:17 +01:00
Christoph M. Becker
b9043112d8
Fix GH-1415: xref not working? 2022-02-18 10:55:04 +01:00
Christoph M. Becker
14b55b8b4b
Don't use old style constructor in example
Closes GH-1406.
2022-02-15 13:19:43 +01:00
the-toster
a416cd2c01
ReflectionClass::isEnum method (#1390) 2022-02-14 13:58:13 -06:00
carnage
012af70e47
Should use constant time sodium_bin2hex in examples
Closes GH-1399.
2022-02-14 12:22:30 +01:00
Jakub Zelenka
04210d535d
Update FPM installation and intro (#1407) 2022-02-13 22:14:47 +00:00
魔王卷子
3a1b673c5f
Fix wrong parameter name
Closes GH-1404.
2022-02-13 14:34:19 +01:00
魔王卷子
f0e6ac0428
[skip-revcheck] fixed typo (#1401) 2022-02-12 17:08:11 +00:00
Peter
560262a557
Update strlen documentation for PHP8
Length parameter to substr() behaves differently for PHP8+. It recognizes null as if no value was provided at all. Updated the documentation to reflect this.

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

Closes GH-1219.
2022-02-10 12:53:41 +01:00
Jeremy Mikola
e4d26f1b44
Fix return type docs for unserialize() methods
Closes #1388
2022-02-09 12:56:30 -05:00
Niklas Keller
06b716a4c3
Fix parameter type for eio_readlink
See 5291fa10d0/php8/php_eio.stub.php (L101)

Closes GH-1386.
2022-02-09 08:25:16 +01:00
tnsoftbear
235a4b9e5a
Fix argument type in EventBufferEvent::setCallback() method and make it mixed instead of string. Add missed $arg argument to signature of EventBufferEvent::__construct()
* Fix argument  type in EventBufferEvent::setCallback() method and make it mixed instead of string.

* Add missed  argument to signature of EventBufferEvent::__construct()

Closes GH-1384.
2022-02-07 12:17:26 +01:00
Rotzbua
8a28a068fa
Add return value "AVIF Support" to gd_info()
Closes GH-1379.
2022-02-07 12:08:24 +01:00
George Peter Banyard
2b56c905fb
Fix error in touch() atime param docs
Closes GH-1377.
2022-02-06 12:55:00 +01:00