Fixed bug: #14542, register_shutdown_function() timeout problem

This commit is contained in:
foobar 2003-01-23 05:15:42 +00:00
parent 80923f933d
commit 7a93625e4c

View File

@ -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");
}