|
7 | 7 | * to suggest that users should be using them. |
8 | 8 | */ |
9 | 9 | 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 |
10 | 12 | 'array_all', // false is not an error |
11 | 13 | 'array_combine', // this function throws an error instead of returning false since PHP 8.0 |
12 | 14 | 'array_flip', // always return an array since PHP 8.0, see https://github.com/php/doc-en/issues/1178 |
13 | 15 | 'array_replace', // this function throws an error instead of returning false since PHP 8.0, see https://github.com/php/doc-en/pull/1649 |
14 | 16 | '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 |
15 | 17 | '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 |
16 | 19 | '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 |
17 | 21 | 'date_sun_info', // always return an array since PHP 8.0, https://github.com/php/doc-en/pull/3207 |
18 | 22 | 'getallheaders', // always return an array since PHP 7, see https://github.com/php/doc-en/commit/68e52ef14de33f6752a8fdda1ae83c861c5babdb |
19 | 23 | 'gmp_random_seed', // this function throws an error instead of returning false since PHP 8.0 |
20 | 24 | '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 |
21 | 26 | '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 |
22 | 28 | 'pack', // this function no longer returns false since PHP 8.0, but the doc has only been updated since PHP 8.4 |
23 | 29 | 'imagesx', // this function throws an error instead of returning false PHP 8.0, see https://github.com/php/doc-en/commit/0462f49fb00dd5abaec3aa322009f2eb40a3279d |
24 | 30 | '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 |
25 | 32 | 'sodium_crypto_auth_verify', // boolean return value is expected from verify |
26 | 33 | '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 |
27 | 35 | ]; |
0 commit comments