[php-src] PR #25187: Throw UnwindExit on timeout
| From: | arnaud-lb | Date: | Wed, 04 Nov 2026 11:12:53 +0000 |
| Subject: | [php-src] PR #25187: Throw UnwindExit on timeout | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40289@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25187
Author: arnaud-lb
max_execution_time is handled like this:
* A signal handler sets EG(vm_interrupt) and EG(timed_out)
* The VM calls zend_timeout() from a safe point when these flags are set
* zend_timeout() triggers a fatal error -> zend_bailout()
Change the last step so that zend_timeout() throws an UnwindExit exception
instead.