Closed TimWolla closed 6 months ago
/cc @bwoebi
I can verify this, ./sapi/cli/php -d zend_extension=$(pwd)/modules/opcache.so -d opcache.enable_cli=1 -d zend_test.observer.enabled=1 reproducer.php
is enough.
I suppose the check here is not good enough to cover traits. I'm not sure how to recognize a trait inherited method here.
For reasons ZEND_ACC_TRAIT_CLONE
is not applied to internal functions. Is there a reason? Otherwise I'm going to propose a PR using that.
Description
Perform the following steps:
./buildconf
./configure --enable-debug --enable-zend-test --enable-fpm
make -j$(nproc)
Create the following files:
crasher/fpm.conf
crasher/php.ini
crasher/test.php
Run
sapi/fpm/php-fpm -y crasher/fpm.conf -c crasher/ -F
And then send a request to FPM. I'm using: https://github.com/akerouanton/fcgi-client via
fcgi-client get 127.0.0.1:9001 crasher/test.php
Now observe the the FPM worker dies:
Running in gdb:
PHP Version
git master
Operating System
Ubuntu 23.10