mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Workaround to fix bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_log)
Use a different exit code for hard_timeout, 124 is used by linux timeout:http://man7.org/linux/man-pages/man1/timeout.1.html "If the command times out, and --preserve-status is not set, then exit with status 124"
This commit is contained in:
parent
930ce02048
commit
1242f53ddb
2 changed files with 3 additions and 1 deletions
2
NEWS
2
NEWS
|
@ -3,6 +3,8 @@ PHP NEWS
|
|||
?? ??? 2017, PHP 7.1.3
|
||||
|
||||
- Core:
|
||||
. Fixed bug #74093 (Maximum execution time of n+2 seconds exceed not written
|
||||
in error_log). (Laruence)
|
||||
. Fixed bug #73989 (PHP 7.1 Segfaults within Symfony test suite).
|
||||
(Dmitry, Laruence)
|
||||
. Fixed bug #74084 (Out of bound read - zend_mm_alloc_small). (Laruence)
|
||||
|
|
|
@ -1203,7 +1203,7 @@ static void zend_timeout_handler(int dummy) /* {{{ */
|
|||
if (output_len > 0) {
|
||||
write(2, log_buffer, MIN(output_len, sizeof(log_buffer)));
|
||||
}
|
||||
_exit(1);
|
||||
_exit(124);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue