/*
* Source: http://php.net/manual/en/function.ini-get.php
*/
public static function iniGetBool($a)
{
$b = ini_get($a);
switch (strtolower($b)) {
case 'on':
case 'yes':
case 'true':
return 'assert.active' !== $a;
case 'stdout':
case 'stderr':
return 'display_errors' === $a;
default:
return (bool) (int) $b;
}
}