You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
php2shell was a consequence of PHP trying to recover from out of memory. An alternative approach, which is likely much simpler to maintain, is to not even attempt to recover. Instead, treat OOM as fatal and call _exit or abort, terminating the process. The supervisor can then restart it.
php2shell was a consequence of PHP trying to recover from out of memory.
This is a bit of an oversimplification.
An alternative approach, which is likely much simpler to maintain, is to not even attempt to recover. Instead, treat OOM as fatal and call _exit or abort, terminating the process.
This is not acceptable for environments like ZTS. The current behaviour was chosen deliberately.
Activity
Krishmal2004 commentedon Oct 23, 2026
@DemiMarie can you assign this issue
DemiMarie commentedon Oct 23, 2026
@Krishmal2004 assign to whom? I’m a security researcher, not a PHP core developer.
ndossche commentedon Oct 23, 2026
This is a bit of an oversimplification.
This is not acceptable for environments like ZTS. The current behaviour was chosen deliberately.