- Reverts the schneespur/ subdirectory restructure (b8e426b)
- Restores package.json and vite.config.js (needed for npm build, were
removed in an earlier cleanup before the restructure)
- Updates public/build/ assets with current Vite output (new content hashes)
36 lines
3.1 KiB
PHP
36 lines
3.1 KiB
PHP
<?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 [
|
|
'apache_request_headers', // always return an array since PHP 7, see https://github.com/php/doc-en/pull/4076
|
|
'apache_response_headers', // always return an array since PHP 7, see https://github.com/php/doc-en/pull/4076
|
|
'array_all', // false is not an error
|
|
'array_combine', // this function throws an error instead of returning false since PHP 8.0
|
|
'array_flip', // always return an array since PHP 8.0, see https://github.com/php/doc-en/issues/1178
|
|
'array_replace', // this function throws an error instead of returning false since PHP 8.0, see https://github.com/php/doc-en/pull/1649
|
|
'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
|
|
'array_walk_recursive', // actually returns always true, see https://github.com/php/doc-en/commit/cec5275f23d2db648df30a5702b378044431be97
|
|
'curl_share_errno', // this function does not anymore return false since PHP 8.0
|
|
'date', // this function throws an error instead of returning false PHP 8.0, but the doc has only been updated since PHP 8.4
|
|
'date_parse', // always return an array, see https://github.com/php/doc-en/pull/2395
|
|
'date_sun_info', // always return an array since PHP 8.0, https://github.com/php/doc-en/pull/3207
|
|
'getallheaders', // always return an array since PHP 7, see https://github.com/php/doc-en/commit/68e52ef14de33f6752a8fdda1ae83c861c5babdb
|
|
'gmp_random_seed', // this function throws an error instead of returning false since PHP 8.0
|
|
'hash_hkdf', // this function throws an error instead of returning false since PHP 8.0
|
|
'imagecolorsforindex', // this function throws an error instead of returning false since PHP 8.0
|
|
'long2ip', // false return type cannot actually be returned, see https://github.com/php/php-src/pull/13395
|
|
'mysqli_get_client_stats', // false is actually never returned, see https://github.com/php/doc-en/pull/1055
|
|
'openssl_random_pseudo_bytes', // this function throws an error instead of returning false since PHP 7.4
|
|
'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
|
|
'shuffle', // actually returns always true
|
|
'sodium_crypto_auth_verify', // boolean return value is expected from verify
|
|
'sodium_crypto_sign_verify_detached', // boolean return value is expected from verify
|
|
'sleep', // this function throws an error instead of returning false since PHP 8.0
|
|
];
|