mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Suppress warnings using zend_quiet_write
This commit is contained in:
parent
30df87f77d
commit
d087a356fe
2 changed files with 2 additions and 2 deletions
|
@ -1176,7 +1176,7 @@ static void zend_timeout_handler(int dummy) /* {{{ */
|
|||
|
||||
output_len = snprintf(log_buffer, sizeof(log_buffer), "\nFatal error: Maximum execution time of " ZEND_LONG_FMT "+" ZEND_LONG_FMT " seconds exceeded (terminated) in %s on line %d\n", EG(timeout_seconds), EG(hard_timeout), error_filename, error_lineno);
|
||||
if (output_len > 0) {
|
||||
write(2, log_buffer, MIN(output_len, sizeof(log_buffer)));
|
||||
zend_quiet_write(2, log_buffer, MIN(output_len, sizeof(log_buffer)));
|
||||
}
|
||||
_exit(124);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue