From: Zeev Suraski Date: Mon, 19 Nov 2001 14:59:38 +0000 (+0000) Subject: Fix set_time_limit() to affect only the current request (fix bug #13711) X-Git-Tag: ChangeLog~283 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=312a226707fac82946b880a3e131fd23b2b89e5a;p=php Fix set_time_limit() to affect only the current request (fix bug #13711) --- diff --git a/main/main.c b/main/main.c index 6c97ce970d..8aa0d56b08 100644 --- a/main/main.c +++ b/main/main.c @@ -506,9 +506,8 @@ PHP_FUNCTION(set_time_limit) WRONG_PARAM_COUNT; } - convert_to_long_ex(new_timeout); - zend_unset_timeout(TSRMLS_C); - zend_set_timeout(Z_LVAL_PP(new_timeout)); + convert_to_string_ex(new_timeout); + zend_alter_ini_entry("max_execution_time", sizeof("max_execution_time"), Z_STRVAL_PP(new_timeout), Z_STRLEN_PP(new_timeout), PHP_INI_USER, PHP_INI_STAGE_RUNTIME); } /* }}} */