Skip to content

Commit 0620813

Browse files
authored
Merge branch 'master' into fix/date_sun_info
2 parents 2437eea + 240b596 commit 0620813

9 files changed

Lines changed: 32 additions & 36 deletions

File tree

generated/8.1/functionsList.php

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/8.1/rector-migrate.php

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/8.1/stream.php

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/8.2/functionsList.php

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/8.2/rector-migrate.php

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/8.3/functionsList.php

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/8.3/rector-migrate.php

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generator/config/detectErrorType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
'/This function returns &true; if a session was successfully started,\s+otherwise &false;./m', // session_start
5656
'/&false;\s+if\s+the\s+timestamp\s+doesn\'t\s+fit\s+in\s+a\s+PHP\s+integer./m', // gmmktime / mktime
5757
'/<function>mktime<\/function>\s+returns\s+the\s+Unix\s+timestamp\s+of\s+the\s+arguments\s+given./', // mktime before https://github.com/php/doc-en/pull/2651
58+
'/The name of the socket/', // stream_socket_get_name (PHP 8.1)
5859
];
5960
foreach ($falsies as $falsie) {
6061
if (preg_match($falsie, $text)) {

generator/config/hiddenFunctions.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,29 @@
77
* to suggest that users should be using them.
88
*/
99
return [
10+
'apache_request_headers', // always return an array since PHP 7, see https://github.com/php/doc-en/pull/4076
11+
'apache_response_headers', // always return an array since PHP 7, see https://github.com/php/doc-en/pull/4076
1012
'array_all', // false is not an error
1113
'array_combine', // this function throws an error instead of returning false since PHP 8.0
1214
'array_flip', // always return an array since PHP 8.0, see https://github.com/php/doc-en/issues/1178
1315
'array_replace', // this function throws an error instead of returning false since PHP 8.0, see https://github.com/php/doc-en/pull/1649
1416
'array_replace_recursive', // this function throws an error instead of returning false since PHP 8.0, see https://github.com/php/doc-en/pull/1649
1517
'array_walk_recursive', // actually returns always true, see https://github.com/php/doc-en/commit/cec5275f23d2db648df30a5702b378044431be97
18+
'curl_share_errno', // this function does not anymore return false since PHP 8.0
1619
'date', // this function throws an error instead of returning false PHP 8.0, but the doc has only been updated since PHP 8.4
20+
'date_parse', // always return an array, see https://github.com/php/doc-en/pull/2395
1721
'date_sun_info', // always return an array since PHP 8.0, https://github.com/php/doc-en/pull/3207
1822
'getallheaders', // always return an array since PHP 7, see https://github.com/php/doc-en/commit/68e52ef14de33f6752a8fdda1ae83c861c5babdb
1923
'gmp_random_seed', // this function throws an error instead of returning false since PHP 8.0
2024
'hash_hkdf', // this function throws an error instead of returning false since PHP 8.0
25+
'imagecolorsforindex', // this function throws an error instead of returning false since PHP 8.0
2126
'long2ip', // false return type cannot actually be returned, see https://github.com/php/php-src/pull/13395
27+
'mysqli_get_client_stats', // false is actually never returned, see https://github.com/php/doc-en/pull/1055
2228
'pack', // this function no longer returns false since PHP 8.0, but the doc has only been updated since PHP 8.4
2329
'imagesx', // this function throws an error instead of returning false PHP 8.0, see https://github.com/php/doc-en/commit/0462f49fb00dd5abaec3aa322009f2eb40a3279d
2430
'imagesy', // this function throws an error instead of returning false PHP 8.0, see https://github.com/php/doc-en/commit/37f858a5579386dafaddaffbe15034dbcd0f55c8
31+
'shuffle', // actually returns always true
2532
'sodium_crypto_auth_verify', // boolean return value is expected from verify
2633
'sodium_crypto_sign_verify_detached', // boolean return value is expected from verify
34+
'sleep', // this function throws an error instead of returning false since PHP 8.0
2735
];

0 commit comments

Comments
 (0)