From: [EMAIL PROTECTED] Operating system: Windows 2000 server PHP version: 4.2.3 PHP Bug Type: Output Control Bug description: output buffer timing is strange
on Windows 2000 SP2 FR, and php 4.2.3, the outbut buffer seems to not work correctly. i make test to see the time taken to output data, and this time is not linear. explain, with output buffer = on in php.ini, all works fine. but with output_buffer=off ou output_buffer = 4096 or 8192 or more, the time for output data is very strange. the script: <? include "exectimer.class.php"; $tip = new VWT_execTimeProfiler(); $suite = " vs print"; $max = 10000; $tip->start(); $tip->watch("echo double"); for( $i=0;$i<$max;$i++) { print "echo $suite"; } echo "<hr>"; $tip->watch("echo en simple"); for( $j=0;$j<$max;$j++) { print 'echo '.$suite; } $tip->stop(); $tip->show(); ?> the first for loop can take 100 ms to 800 ms when i change the size of output buffer. if i increase the loop count, then the time for the second loop inrease, but the firt loop decrease. When output_buffer is on, all works fine. I don't see this bug on Linux. PS: sorry for my bad english... -- Edit bug report at http://bugs.php.net/?id=19516&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19516&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19516&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19516&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19516&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19516&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19516&r=support Expected behavior: http://bugs.php.net/fix.php?id=19516&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19516&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19516&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19516&r=globals