[php-src] PR #14018: Fix GH-13817: Segmentation fault for enabled observers after pass 4
| From: | bwoebi | Date: | Sat, 20 Apr 2024 16:06:05 +0000 |
| Subject: | [php-src] PR #14018: Fix GH-13817: Segmentation fault for enabled observers after pass 4 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25851@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14018
Author: bwoebi
Instead of fixing up temporaries count in between observer steps, just take ZEND_ACC_DONE_PASS_TWO
into account during stack_size calculation. Introducing zend_vm_calc_ct_used_stack for that use
case.
This should be much less susceptible to forgetting to handle the ZEND_OBSERVER_ENABLED temporary
explicitly.