Advertisement
Guest User

Untitled

a guest
Oct 11th, 2021
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.88 KB | None | 0 0
  1. --- a/main/main.c       2021-10-11 16:03:48.539247868 +0200
  2. +++ b/main/main.c       2021-10-11 16:03:14.828953458 +0200
  3. @@ -707,6 +707,7 @@
  4.         STD_PHP_INI_ENTRY("sys_temp_dir",                       NULL,           PHP_INI_SYSTEM,         OnUpdateStringUnempty,  sys_temp_dir,                   php_core_globals,       core_globals)
  5.         STD_PHP_INI_ENTRY("include_path",                       PHP_INCLUDE_PATH,               PHP_INI_ALL,           OnUpdateStringUnempty,   include_path,                   php_core_globals,       core_globals)
  6.         PHP_INI_ENTRY("max_execution_time",                     "30",           PHP_INI_ALL,                    OnUpdateTimeout)
  7. +       STD_PHP_INI_BOOLEAN("strict_time_limit",                "0",            PHP_INI_SYSTEM,         OnUpdateBool,  strict_time_limit,                       php_core_globals,       core_globals)
  8.         STD_PHP_INI_ENTRY("open_basedir",                       NULL,           PHP_INI_ALL,            OnUpdateBaseDir,open_basedir,                   php_core_globals,       core_globals)
  9.  
  10.         STD_PHP_INI_BOOLEAN("file_uploads",                     "1",            PHP_INI_SYSTEM,         OnUpdateBool,  file_uploads,                    php_core_globals,       core_globals)
  11. @@ -1459,6 +1460,8 @@
  12.                 RETURN_THROWS();
  13.         }
  14.  
  15. +       if (PG(strict_time_limit)) RETURN_FALSE;
  16. +
  17.         new_timeout_strlen = (int)zend_spprintf(&new_timeout_str, 0, ZEND_LONG_FMT, new_timeout);
  18.  
  19.         key = zend_string_init("max_execution_time", sizeof("max_execution_time")-1, 0);
  20. --- a/main/php_globals.h        2021-10-11 16:05:25.412968311 +0200
  21. +++ b/main/php_globals.h        2021-10-11 16:05:15.886602340 +0200
  22. @@ -111,6 +111,7 @@
  23.         zval http_globals[6];
  24.  
  25.         zend_bool expose_php;
  26. +       zend_bool strict_time_limit;
  27.  
  28.         zend_bool register_argc_argv;
  29.         zend_bool auto_globals_jit;
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement