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 }}
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
We had some issues with a server which had output_buffering enabled via php.ini.
Debugging was made harder due to the fact that the Server creates an output buffer in its constructor, which is a side effect..
Since output_get_level will reliably tell us if output buffering is enabled, it would be nice to just throw an exception in that case:
public function __construct($verifyHeaders = true)
{
if (true === $verifyHeaders && true === headers_sent($file, $line)) {
throw new Exception(
'Headers already sent in %s at line %d, cannot send data ' .
'to client correctly.',
0,
[$file, $line]
);
}
if(ob_get_level() > 0) {
throw new Exception("Output buffering is active");
}
We had some issues with a server which had
output_buffering
enabled viaphp.ini
.Debugging was made harder due to the fact that the
Server
creates an output buffer in its constructor, which is a side effect..Since
output_get_level
will reliably tell us if output buffering is enabled, it would be nice to just throw an exception in that case:Alternatively output buffering could be disabled:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: