ext-pmmpthread
ext-pmmpthread copied to clipboard
zend_internal_function incomplete copying
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.
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.