-
-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathhiddenFunctions.php
More file actions
21 lines (21 loc) · 1.58 KB
/
hiddenFunctions.php
File metadata and controls
21 lines (21 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/*
* A list of functions which don't really belong in Safe, but our
* unsafe-function-detector detected them by accident, and now we
* don't want to delete them (because that would break the backwards
* compatibility promise implied by Semver), but we also don't want
* to suggest that users should be using them.
*/
return [
'array_all', // false is not an error
'array_combine', // this function throws an error instead of returning false since PHP 8.0
'array_walk_recursive', // actually returns always true, see https://github.com/php/doc-en/commit/cec5275f23d2db648df30a5702b378044431be97
'date', // this function throws an error instead of returning false PHP 8.0, but the doc has only been updated since PHP 8.4
'getallheaders', // always return an array since PHP 7, see https://github.com/php/doc-en/commit/68e52ef14de33f6752a8fdda1ae83c861c5babdb
'long2ip', // false return type cannot actually be returned, see https://github.com/php/php-src/pull/13395
'pack', // this function no longer returns false since PHP 8.0, but the doc has only been updated since PHP 8.4
'imagesx', // this function throws an error instead of returning false PHP 8.0, see https://github.com/php/doc-en/commit/0462f49fb00dd5abaec3aa322009f2eb40a3279d
'imagesy', // this function throws an error instead of returning false PHP 8.0, see https://github.com/php/doc-en/commit/37f858a5579386dafaddaffbe15034dbcd0f55c8
'sodium_crypto_auth_verify', // boolean return value is expected from verify
'sodium_crypto_sign_verify_detached', // boolean return value is expected from verify
];