]> granicus.if.org Git - php/commitdiff
Fixed bug: #14542, register_shutdown_function() timeout problem
authorfoobar <sniper@php.net>
Thu, 23 Jan 2003 05:15:42 +0000 (05:15 +0000)
committerfoobar <sniper@php.net>
Thu, 23 Jan 2003 05:15:42 +0000 (05:15 +0000)
Zend/zend_execute_API.c

index 9e7f8e5c7b56fe7ef85976a6430bc5dace808ed6..e5641f91e211c7a8edf0dd59a0c46c3a34fcbbbf 100644 (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");
 }