What happened?
creating new threads from worker mode crashes the currently running worker thread.
repro:
<?php
$handler = static function () {
return frankenphp_handle_request(static function () {
$runtime = new parallel\Runtime();
$future = $runtime->run(function () {
return 'hello from thread';
});
echo $future->value();
});
};
while ($handler()); // first hit -> segfault
Build Type
Docker (Debian Trixie)
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
phpinfo() output
Relevant log output
Relevant log output
What happened?
creating new threads from worker mode crashes the currently running worker thread.
repro:
Build Type
Docker (Debian Trixie)
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
phpinfo() output
Relevant log output
Relevant log output