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
{{ message }}
Repository navigation
Segmentation fault (access null pointer) in Zend/zend_stack.c #15496
php_error_docref("ref.outcontrol", E_ERROR, "Cannot use output buffering in output buffering display handlers");
On shutdown, the session handler invokes, which calls op_start(). However, OG(handlers) has already been destroyed, so we get a NULL pointer exception.
With all of that said, I don't know what the best approach is to fix this. Maybe we just don't trigger the handler when cleaning the output? I really don't know much about output buffering.
Activity
cmb69 commentedon Aug 19, 2024
From a quick look, that seems to be another output buffering issue.
iluuu1994 commentedon Aug 21, 2024
I had a look, and what I believe is happening:
ob_start()handler is registered, emitting some warning (undefined variable).php_output_discard_all().php-src/main/main.c
Lines 1335 to 1337 in 6b809c8
$btriggers another error, again invokingphp_output_discard_all().php_output_deactivate()is called, and then we error again, which includeszend_bailout().php-src/main/output.c
Lines 762 to 765 in 6b809c8
op_start(). However,OG(handlers)has already been destroyed, so we get aNULLpointer exception.With all of that said, I don't know what the best approach is to fix this. Maybe we just don't trigger the handler when cleaning the output? I really don't know much about output buffering.
Fix phpGH-15496: Fix accessing NULL pointer on output handler stack
ndossche commentedon Oct 25, 2026
This is now also fixed by having the general graceful OOM handling.