Re: [PATCH] Raise warning first on "Maximum execution time exceeded"
| From: | troels knak-nielsen | Date: | Mon, 22 Mar 2010 19:27:40 +0000 |
| Subject: | Re: [PATCH] Raise warning first on "Maximum execution time exceeded" | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47468@lists.php.net to get a copy of this message | ||
With the help of Scotts last suggestion, I made some changes. It seems
to work, but then I don't really know how to test it properly. I can
verify that A) it allows userland code the grace period of 1 second
for shutting down and B) shuts down regardless of the userland error
handler returning or not. I have tested by running the following:
php -r 'function err() { echo "Shutting down"; while (true) {}};
set_error_handler("err"); set_time_limit(2); while (true) {}'
New patch is attached.
--
troels
Attachment: [text/x-diff] zend_timeout_warning_3.patch
Attachment: [text/x-diff] zend_timeout_warning_3.patch