PHP 8.5.0 Alpha 1 available for testing

Voting

: max(eight, one)?
(Example: nine)

The Note You're Voting On

webmaster at mamo-net dot de
17 years ago
If you use suhosin.executor.func.blacklist instead of disabled_functions in your php.ini, function_exists will return true for a disabled function. I used this to have the same beahviour with suhosin.executor.func.blacklist and disabled_functions:

<?php
function suhosin_function_exists($func) {
if (
extension_loaded('suhosin')) {
$suhosin = @ini_get("suhosin.executor.func.blacklist");
if (empty(
$suhosin) == false) {
$suhosin = explode(',', $suhosin);
$suhosin = array_map('trim', $suhosin);
$suhosin = array_map('strtolower', $suhosin);
return (
function_exists($func) == true && array_search($func, $suhosin) === false);
}
}
return
function_exists($func);
}
?>

<< Back to user notes page

To Top