diff options
author | Zeev Suraski <zeev@php.net> | 2001-11-19 15:00:42 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-11-19 15:00:42 +0000 |
commit | dee465139fefeaf30fac0028dc0b939e5e9b8b47 (patch) | |
tree | 99e82dadba44f084c72572d54143c775687d542a | |
parent | f5b77142382952e41af3e666c115be511dc3792f (diff) | |
download | php-git-dee465139fefeaf30fac0028dc0b939e5e9b8b47.tar.gz |
MFH
-rw-r--r-- | main/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/main.c b/main/main.c index 7a46bde331..832213b661 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); } /* }}} */ |