Join Nostr
2026-10-24 21:19:08 UTC

Jan Schaumann on Nostr: #php2shell is based on PHP using longjmp(3) to bail out of OOM conditions. They fixed ...

#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 a long-lived, server-side process.