Bug #15245 Updated: HTML output is corrupted unless implicit_flush turned on

From: Date: Tue, 12 Feb 2002 00:54:10 +0000
Subject: Bug #15245 Updated: HTML output is corrupted unless implicit_flush turned on
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-158@lists.php.net to get a copy of this message
ID: 15245 Updated by: pmarks@employees.org -Reported By: toni.suokas@jippiigroup.com +Reported By: pmarks@employees.org Status: Assigned Bug Type: Output Control Operating System: Windows XP Professional PHP Version: 4.1.1 Assigned To: yohgaki New Comment: I'm also experienceing this bug on Linux 2.4.4, running Apache 1.2.23 and PHP 4.1.1. It also only appears on lengthy pages, but on one short one also. In VIM, it shows up as a stream of characters looking like this: ^@^@^@^@^@... and so on. Just confirming that this isn't limited to WindowsXP. Previous Comments: ------------------------------------------------------------------------ [2002-02-06 21:57:21] yohgaki@php.net I found why you get corrupted output w/o ob_implicit_flush. PHP was removing the last buffer enabled, I fixed this. Therefore, real problem should be the last buffer you've enabled. Could you locate the last buffer? If it's a you buffer wrtten in PHP, I need only the output handler function. I also need following php.ini entry settings output_buffering output_handler zlib.output_compression implicit_flush ------------------------------------------------------------------------ [2002-02-05 02:33:11] tonalgeek@hotmail.com Yes - I'm getting that bug. It seems that things are fine when databases are not used, but when mysql is used repeatedly on a page this happens. Look at this phpBB output: [...] <td class="row1" width="100%" height="50"><span class="forumlink"> <a href="viewforum.php?f=1&amp;sid=aa0529cd144ad295d85f885c6d5ef9b2" class="forumlink">Talkabout Weird Stuff</a><br /> </s èXT€  $ °0 œ  $ I 3 0 È  $ I 3 0 ô  $ I 3 0  $ I 3 0 L $ I 3 0 x $ I 3 0 ¤ $ I 3 0 Ð $ I 3 0 ü $ I 3 0 ( $ I 3 0 T $ I 3 0 € $ I 3 0 ¬ $ I 3 0 Ø $ I 3 0  $ I 3 0 0 $ I 3 0 \ $ I 3 0 ˆ $ I 3 0 ´ $ I 3 0 à $ I 3 0  $ I 3 0 8 $ I 3 0 d $ I 3 0  $ I 3 0 ¼ $ I 3 0 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 I 3 0 4* $ I 3 0 `* $ I 3 0 Œ* $ I 3 0 ¸* $ I 3 0 ä* $ I 3 0 + $ I 3 0 <+ $ I 3 0 h+ $ I 3 0 ”+ $ I 3 0 À+ $ I 3 0 ì+ $ I 3 0 , $ I 3 0 D, $ I 3 0 p, $ I 3 0 œ, $ I 3 0 È, $ I 3 0 ô, $ I 3 0 - $ I 3 0 L- $ I 3 0 x- $ I 3 0 ¤- $ I 3 0 Ð- $ I 3 0 ü- $ I 3 0 (. $ I 3 0 T. $ I 3 0 €. $ I 3 0 ¬. $ I 3 0 Ø. $ I 3 0 / $ I 3 0 0/ $ I 3 0 \/ $ I 3 0 ˆ/ $ I 3 0 ´/ $ I 3 0 à/ $ I 3 0 0 $ I 3 0 80 $ I 3 0 d0 $ I 3 0 0 $ I 3 0 ¼0 $ I 3 0 è0 $ I 3 0 1 $ I 3 0 @1 $ I 3 0 l1 $ I 3 0 ˜1 $ I 3 0 Ä1 $ I 3 0 ð1 $ I 3 0 2 $ I 3 0 H2 $ I 3 0 t2 $ I 3 0  2 $ I 3 0 Ì2 $ I 3 0 d user<br />The newest registered user is <b><a href="profile.php?mode=viewprofile&amp;u=1&amp;sid=aa0529cd144ad295d85f885c6d5ef9b2">TonalSiren</a></b></span></p> [...] I seem to be getting $I30 repeated. ------------------------------------------------------------------------ [2002-01-27 11:09:25] toni.suokas@jippiigroup.com PHP 4.1.1 binaries (and earlier versions) using Apache 1.3.23 in Windows XP Prof. corrupts HTML output with random binary code to clients connecting from remote computers. Output in localhost is fine. This seems to happen if the HTML is lengthy. The problem can be solved turning implicit_flush from php.ini to on, but this is a rather poor solution as it degrades performance quite a lot. Below is an example of corrupted output, both from same source. ... <tr> <td align="right" onmouseover="menuOver(this)" onmouseout="menuOut(this)"><dèXT€èXT€ /toi бþs/">Toimitus</a></div></td> </tr> ... <td colspan="3" align="right"><a href="/pelikonsolit/" class="blue"><b>Lue lisää...</b></a></td> </tèXT€èXT€ r> ²þ <td><img src="/images/items/bar_red.gif" width="7" height="11" alt="" border="0" /></td> ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15245&edit=1

« previous php.bugs (#158) next »