JBZoo\Utils\Sys::iniSet PHP Method

iniSet() public static method

Alias fo ini_set function
public static iniSet ( string $varName, string $newValue ) : mixed
$varName string
$newValue string
return mixed
    public static function iniSet($varName, $newValue)
    {
        if (self::isFunc('ini_set')) {
            return Filter::bool(ini_set($varName, $newValue));
        }
        return null;
        // @codeCoverageIgnore
    }

Usage Example

Beispiel #1
0
 /**
  * @return int
  */
 protected function _setEnv()
 {
     // set limits & reporting
     if ($this->_isDebug()) {
         error_reporting(-1);
     } else {
         error_reporting(E_ERROR | E_WARNING);
     }
     $memory = $this->_globConfig->get('memory', '1024M');
     $time = (int) $this->_globConfig->get('time', 1800);
     Sys::iniSet('display_errors', 1);
     Sys::setTime($time);
     Sys::setMemory($memory);
 }