ext-pmmpthread icon indicating copy to clipboard operation
ext-pmmpthread copied to clipboard

zend_internal_function incomplete copying

Open dktapps opened this issue 2 years ago • 1 comments

As seen in closure-scope-child-to-parent.phpt, jitted functions masquerade as internal functions. Apparently we're not copying these completely, because a jitted function copied from child to parent thread crashes when trying to refer to its current filename, which jumps back through execute_data.

I've yet to identify exactly why this is happening.

dktapps avatar Jan 28 '23 17:01 dktapps

It turns out that a bug in php-src is responsible for this test failing, and not pthreads. php/php-src#10473

However, there are still some potential issues with internal function copying: arginfo and attributes are not copied, and run_time_cache needs to be inited on 8.1 and up.

dktapps avatar Jan 30 '23 19:01 dktapps