File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ PHP NEWS
7
7
(cmb, Nikita)
8
8
. Fixed bug #81163 (incorrect handling of indirect vars in __sleep).
9
9
(krakjoe)
10
- . Fixed bug #81159 (Object to int warning when using an object as a string offset).
11
- (girgias)
10
+ . Fixed bug #81159 (Object to int warning when using an object as a string
11
+ offset). (girgias)
12
+ . Fixed bug #80728 (PHP built-in web server resets timeout when it can kill
13
+ the process). (Calvin Buckley)
12
14
13
15
- Intl:
14
16
. Fixed bug #72809 (Locale::lookup() wrong result with canonicalize option).
Original file line number Diff line number Diff line change @@ -406,7 +406,15 @@ static PHP_INI_MH(OnUpdateTimeout)
406
406
}
407
407
zend_unset_timeout ();
408
408
ZEND_ATOL (EG (timeout_seconds ), ZSTR_VAL (new_value ));
409
- zend_set_timeout (EG (timeout_seconds ), 0 );
409
+ if (stage != PHP_INI_STAGE_DEACTIVATE ) {
410
+ /*
411
+ * If we're restoring INI values, we shouldn't reset the timer.
412
+ * Otherwise, the timer is active when PHP is idle, such as the
413
+ * the CLI web server or CGI. Running a script will re-activate
414
+ * the timeout, so it's not needed to do so at script end.
415
+ */
416
+ zend_set_timeout (EG (timeout_seconds ), 0 );
417
+ }
410
418
return SUCCESS ;
411
419
}
412
420
/* }}} */
You can’t perform that action at this time.
0 commit comments