#31723 [Opn->Bgs]: call function_exists in safe_mod return true to set_time_limit
| From: | iliaa@php.net | Date: | Thu, 27 Jan 2005 16:40:49 +0000 |
| Subject: | #31723 [Opn->Bgs]: call function_exists in safe_mod return true to set_time_limit | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72936@lists.php.net to get a copy of this message | ||
ID: 31723
Updated by: iliaa@php.net
Reported By: diogo at netmake dot com dot br
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Any System
PHP Version: 4.3.10
New Comment:
The function exists, which is why the return value of function_exists
is TRUE.
Previous Comments:
------------------------------------------------------------------------
[2005-01-27 15:32:42] diogo at netmake dot com dot br
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 this bug report at http://bugs.php.net/?id=31723&edit=1