Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/main/main.c 2021-10-11 16:03:48.539247868 +0200
- +++ b/main/main.c 2021-10-11 16:03:14.828953458 +0200
- @@ -707,6 +707,7 @@
- STD_PHP_INI_ENTRY("sys_temp_dir", NULL, PHP_INI_SYSTEM, OnUpdateStringUnempty, sys_temp_dir, php_core_globals, core_globals)
- STD_PHP_INI_ENTRY("include_path", PHP_INCLUDE_PATH, PHP_INI_ALL, OnUpdateStringUnempty, include_path, php_core_globals, core_globals)
- PHP_INI_ENTRY("max_execution_time", "30", PHP_INI_ALL, OnUpdateTimeout)
- + STD_PHP_INI_BOOLEAN("strict_time_limit", "0", PHP_INI_SYSTEM, OnUpdateBool, strict_time_limit, php_core_globals, core_globals)
- STD_PHP_INI_ENTRY("open_basedir", NULL, PHP_INI_ALL, OnUpdateBaseDir,open_basedir, php_core_globals, core_globals)
- STD_PHP_INI_BOOLEAN("file_uploads", "1", PHP_INI_SYSTEM, OnUpdateBool, file_uploads, php_core_globals, core_globals)
- @@ -1459,6 +1460,8 @@
- RETURN_THROWS();
- }
- + if (PG(strict_time_limit)) RETURN_FALSE;
- +
- new_timeout_strlen = (int)zend_spprintf(&new_timeout_str, 0, ZEND_LONG_FMT, new_timeout);
- key = zend_string_init("max_execution_time", sizeof("max_execution_time")-1, 0);
- --- a/main/php_globals.h 2021-10-11 16:05:25.412968311 +0200
- +++ b/main/php_globals.h 2021-10-11 16:05:15.886602340 +0200
- @@ -111,6 +111,7 @@
- zval http_globals[6];
- zend_bool expose_php;
- + zend_bool strict_time_limit;
- zend_bool register_argc_argv;
- zend_bool auto_globals_jit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement