ID: 22401 User updated by: php at andyuhl dot com Reported By: php at andyuhl dot com -Status: Feedback +Status: Open Bug Type: Output Control Operating System: Win2K PHP Version: 4.3.0 New Comment:
The original server running 4.3.0 is using a slightly customized version of php.ini-dist. When I installed the CVS snapshot yesterday, I used php.ini-dist with no changes and was able to reproduce the problem on a second machine. Another thing I discovered is that it seems to work properly if I call ob_gzhandler as the callback function. It only seems to fail when supplying your own function as I did in the example code in my original post. Previous Comments: ------------------------------------------------------------------------ [2003-02-26 01:07:39] [EMAIL PROTECTED] Which php.ini are you using? php.ini-dist or php.ini-recommended? Have you made any changes to it? ------------------------------------------------------------------------ [2003-02-25 09:32:46] php at andyuhl dot com Problem still occurs with latest snapshot. It should be noted that not only does the replaced output not appear, but the original output containing the timeout error message and whatever your original output should be also does not appear. It is simply empty. I tested this on a different machine as I am not able to upgrade the original machine at this time. This machine is WinXP instead of Win2K and it is now running the latest snapshot. ------------------------------------------------------------------------ [2003-02-25 02:20:50] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Can not reproduce using latest CVS snapshot.. ------------------------------------------------------------------------ [2003-02-24 13:07:56] php at andyuhl dot com The ob_start callback function doesn't seem to get called when the script runs long. To reproduce: <?php function callback($buffer) { return "callback function executed successfully."; } set_time_limit(5); ob_start("callback"); while (1) { // do nothing } ob_end_flush(); ?> This results in empty output for me. You can see my environment here: http://www.andyuhl.com/phpinfo.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22401&edit=1