mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed bug: #14542, register_shutdown_function() timeout problem
This commit is contained in:
parent
80923f933d
commit
7a93625e4c
@ -838,11 +838,12 @@ ZEND_API void zend_timeout(int dummy)
|
||||
{
|
||||
TSRMLS_FETCH();
|
||||
|
||||
zend_error(E_ERROR, "Maximum execution time of %d second%s exceeded",
|
||||
EG(timeout_seconds), EG(timeout_seconds) == 1 ? "" : "s");
|
||||
if (zend_on_timeout) {
|
||||
zend_on_timeout(EG(timeout_seconds) TSRMLS_CC);
|
||||
}
|
||||
|
||||
zend_error(E_ERROR, "Maximum execution time of %d second%s exceeded",
|
||||
EG(timeout_seconds), EG(timeout_seconds) == 1 ? "" : "s");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user