#php2shell is based on PHP using longjmp(3) to bail out of OOM conditions. They ...

@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:

github.com/php/php-src/commit/

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.