I have problems with ob_start. I'm not sure what the deal was made, but I brought it to the simplest possible test ... all the same to no avail. I would expect this code to output "bar" to stdout, but I get nothing and no errors in the error log.
<?php function gzhandler_ex($buffer, $mode) { echo 'bar'; } ob_start('gzhandler_ex'); echo 'foo'; ob_flush();
I have never seen this before, but usually I do not use such callbacks.
John green
source share