#31723 [NEW]: call function_exists in safe_mod return true to set_time_limit

From: Date: Thu, 27 Jan 2005 14:32:43 +0000
Subject: #31723 [NEW]: call function_exists in safe_mod return true to set_time_limit
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72931@lists.php.net to get a copy of this message
From: diogo at netmake dot com dot br Operating system: Any System PHP version: 4.3.10 PHP Bug Type: *General Issues Bug description: call function_exists in safe_mod return true to set_time_limit Description: ------------ I'm doing a multiplataform software. I always need to set set_time_limit(0), but some unix disable then turning on safe_mode. in safe_mode, some functions and functionales are disabled. how can call function_exists("set_time_limit") to test if always i get TRUE? in safe_mode should be false. The same happens with get_defined_functions, that returns an array with set_time_limit seted TRUE. Reproduce code: --------------- $bol_result = function_exists("set_time_limit"); if($bol_result) { set_time_limit(0); } Expected result: ---------------- $bol_result return false Actual result: -------------- $bol_result returns true, then call set_time_limit, my php is in safe_mode so crash: set_time_limit(): Cannot set time limit in safe mode -- Edit bug report at http://bugs.php.net/?id=31723&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31723&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31723&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31723&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31723&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31723&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31723&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31723&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31723&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31723&r=support Expected behavior: http://bugs.php.net/fix.php?id=31723&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31723&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31723&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31723&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31723&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31723&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31723&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31723&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31723&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31723&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31723&r=mysqlcfg

« previous php.bugs (#72931) next »