src/util/PHP.php
public static function ini_set($option, $value, $throwException = true) {
        if (is_bool($value))
            $value = (int) $value;

        $oldValue = ini_set($option, $value);
        if ($oldValue !== false)
            return true;

        $oldValue = ini_get($option);       // ini_set() caused an error
        $newValue = (string) $value;

        if ($oldValue == $newValue)         // the error can be ignored
            return true;

        if ($throwException) throw new RuntimeException('Cannot set php.ini option "'.$option.'" (former value="'.$oldValue.'")');
        return false;
    }
public static function ini_set($option, $value, $throwException = true) {
        if (is_bool($value))
            $value = (int) $value;

        $oldValue = ini_set($option, $value);
        if ($oldValue !== false)
            return true;

        $oldValue = ini_get($option);       // ini_set() caused an error
        $newValue = (string) $value;

        if ($oldValue == $newValue)         // the error can be ignored
            return true;

        if ($throwException) throw new RuntimeException('Cannot set php.ini option "'.$option.'" (former value="'.$oldValue.'")');
        return false;
    }
public static function ini_set ( $ option , $ value , $ throwException = true ) { if ( is_bool ( $ value ) ) $ value = ( int ) $ value ; $ oldValue = ini_set ( $ option , $ value ) ; if ( $ oldValue !== false ) return true ; $ oldValue = ini_get ( $ option ) ; // ini_set() caused an error $ newValue = ( string ) $ value ; if ( $ oldValue == $ newValue ) // the error can be ignored return true ; if ( $ throwException ) throw new RuntimeException ( 'Cannot set php.ini option "' . $ option . '" (former value="' . $ oldValue . '")' ) ; return false ; }
Set the specified php.ini setting. Opposite to the built-in PHP function this method does not return the old value
but a boolean success status. Used to detect assignment errors if the access level of the specified option
doesn't allow a modification.

@param  string          $option
@param  bool|int|string $value
@param  bool            $throwException [optional] - whether to throw an exception on errors (default: yes)

@return bool - success status
Set the specified php . ini setting . Opposite to the built - in PHP function this method does not return the old value but a boolean success status . Used to detect assignment errors if the access level of the specified option doesn t allow a modification .