#php2shell is based on PHP using longjmp(3) to bail out of OOM conditions. They ...
Jan Schaumann @jschauma@mstdn.social
#php2shell is based on PHP using longjmp(3) to bail out of OOM conditions. They fixed that by actually properly unwinding the call stack under those conditions -- that's the "replace bailout with UnwindExit" part in the massive diff that touches 389 files here:
https://github.com/php/php-src/commit/01a40e89fb
Cool. But.
There are still dozens of other places where PHP longjmp(3)'s, and frankly, I don't think that can possibly be a safe error handling approach in complex server-side processes.