[php-src] PR #16438: Fix GH-16414: Segmentation fault in Zend/zend_observer.c
| From: | cmb69 | Date: | Mon, 14 Oct 2024 14:37:58 +0000 |
| Subject: | [php-src] PR #16438: Fix GH-16414: Segmentation fault in Zend/zend_observer.c | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29236@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16438
Author: cmb69
https://github.com/php/php-src/blob/5955ce898789ca691559baf69d8ab5a1d6136548/Zend/zend_observer.h#L62-L63
How would poor ext/zend_test know whether
zend_observer_fcall_register() had been
called? Can that function call be observed? ;)
Kidding aside, I don't think this patch is the proper fix (since the issue is related to
ext/zend_test, and not really to observers). Instead, it should be possible to check whether an
fcall has been registered; unfortunately, there appears to be no API for that, and
zend_observers_fcall_list is static.