ID:               31723
 Updated by:       [EMAIL PROTECTED]
 Reported By:      diogo at netmake dot com dot br
 Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Any System
 PHP Version:      4.3.10
 New Comment:

The function still exists in safe_mode it is just not allowed. You have
to check if safe_mode is enabled or not instead.



Previous Comments:
------------------------------------------------------------------------

[2005-01-27 17:40:48] [EMAIL PROTECTED]

The function exists, which is why the return value of function_exists
is TRUE.

------------------------------------------------------------------------

[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

Reply via email to