ID: 22228 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Reproducible crash Operating System: Win2K SP3 PHP Version: 4.2.3 New Comment:
I monitored the memory behaviour of Apache. You could say I gave myself a hint ;-))) When I reload the script, whether compression is on or of, and make Apache crash, it restarts itself again and shows the output. When I wait a couple of seconds I can see a change of 4K in the memory usage of Apache. When I reload then it always crashes. When I reload before this memory change occurs, it does not crash. Previous Comments: ------------------------------------------------------------------------ [2003-02-15 04:48:11] [EMAIL PROTECTED] The following code is a short form of what I have in the production environment. Switching back and forth between buffercompression on and off makes it crash. It seems only to happen when compression is on. Unfortunately it does not happen all the time. I could not find out under which condition it crashes but it happens very frequently. Around every third or fourth reload. Sometimes with the tenths ;-). If you wait a longer time between reloads it seems to happen every time. Could it be something with the cache or the buffer in memory itself? The output of the variable which contains the status seems not to have something to do with it. When I remove the var_dump it also crashes. HTH wolfgang ---- 8< Snip --------------- $outputbuffering = true; $buffercompression = false; function start_buffering(){ global $outputbuffering,$buffercompression; if ($outputbuffering == true AND $buffercompression == true){ ob_start("ob_gzhandler"); }elseif ($outputbuffering == true AND $buffercompression == false){ ob_start(); } } function stop_buffering(){ global $outputbuffering; if ($outputbuffering == true){ $obstat=ob_get_status(true); var_dump($obstat); ob_end_flush(); } } start_buffering(); print "Hello World<BR>"; stop_buffering(); ------------------------------------------------------------------------ [2003-02-15 02:01:11] [EMAIL PROTECTED] Wrong status... Could you provide us a short and self-contained example script to reproduce this problem? ------------------------------------------------------------------------ [2003-02-15 01:47:40] [EMAIL PROTECTED] verified ------------------------------------------------------------------------ [2003-02-14 19:19:05] [EMAIL PROTECTED] ob_get_status() works but ob_get_status(true) crashes with Apache on Win2K SP3 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22228&edit=1