public static function setTime($newLimit = 0) { $newLimit = (int) $newLimit; self::iniSet('set_time_limit', $newLimit); self::iniSet('max_execution_time', $newLimit); if (self::isFunc('set_time_limit') && !ini_get('safe_mode')) { set_time_limit($newLimit); } }
public function testSetTimeAndMemory() { Sys::setTime(1800); Sys::setMemory('128M'); isSame('128M', Sys::iniGet('memory_limit')); //isSame('1800', Sys::iniGet('set_time_limit')); //isSame('1800', Sys::iniGet('max_execution_time')); }