Well, now that I’ve gone a little deeper into it, I understand that this is a stupid question and a wrong one. It turns out that the author of the legacy code that I supported, welcomed the error log in another file using the instruction php_init. Hi-jacking occurred at the same time as output buffering, and it looked as if output buffering was dropping my error messages.
So, Mr. Moderator, feel free to delete this. Thanks to those who answered in good faith.
Given the following PHP script:
<?php
error_log('test');
ob_start();
error_log('test2');
ob_end_flush();
?>
I get the following error log output:
[04-Feb-2010 11:30:38] test
Why does output buffering contain my error messages? How can I make him stop?
, , ?
( PHP 5.2.4-2ubuntu5.10)