#40472 [Fbk->Opn]: Semi random characters posted along with page content

From: Date: Wed, 14 Feb 2007 15:52:35 +0000
Subject: #40472 [Fbk->Opn]: Semi random characters posted along with page content
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108895@lists.php.net to get a copy of this message
ID: 40472 User updated by: fuitad at gmail dot com Reported By: fuitad at gmail dot com -Status: Feedback +Status: Open Bug Type: Output Control Operating System: FreeBSD PHP Version: 5.2.1 New Comment: [fmg@ib-apache1 ~]$ telnet zestuff.com 80 Trying 209.172.63.175... Connected to zestuff.com. Escape character is '^]'. GET /index.php HTTP/1.1 Host:zestuff.com Connection: close HTTP/1.1 200 OK Date: Wed, 14 Feb 2007 15:58:13 GMT Server: Apache X-Powered-By: PHP/5.2.1 Pragma: no-cache Expires: Mon, 26 Jul 1997 05:00:00 GMT Last-Modified: Wed, 14 Feb 2007 15:58:21 GMT Cache-Control: no-store, must-revalidate Cache-Control: post-check=-1, pre-check=-1 Set-Cookie: sid=80c40a7ecf800d1a6b8044f8e2d6351174689194; expires=Thu, 14-Feb-2008 15:58:21 GMT; path=/; domain=.zestuff.com Set-Cookie: sip=565277585; expires=Thu, 14-Feb-2008 15:58:21 GMT; path=/; domain=.zestuff.com Connection: close Transfer-Encoding: chunked Content-Type: text/html 2029 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> Previous Comments: ------------------------------------------------------------------------ [2007-02-14 15:46:20] mike@php.net I can't reproduce: mike@honeybadger:~$ telnet 0 80 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. GET /abc.php HTTP/1.1 Host:honeybadger Connection: close HTTP/1.1 200 OK Date: Wed, 14 Feb 2007 15:43:49 GMT Server: Apache/2.0.55 (Ubuntu) DAV/2 MDT/1.5 PHP/5.2.2-dev X-Powered-By: PHP/5.2.2-dev Connection: close Transfer-Encoding: chunked Content-Type: text/html 1 a 1 b 1 c 1 0 Connection closed by foreign host. mike@honeybadger:~$ telnet 0 80 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. GET /abc.php HTTP/1.0 Host: honeybadger HTTP/1.1 200 OK Date: Wed, 14 Feb 2007 15:44:25 GMT Server: Apache/2.0.55 (Ubuntu) DAV/2 MDT/1.5 PHP/5.2.2-dev X-Powered-By: PHP/5.2.2-dev Connection: close Content-Type: text/html abc Connection closed by foreign host. mike@honeybadger:~$ cat /www/html/abc.php <?php ob_implicit_flush(1); while( @ob_end_clean() ); echo "a"; echo "b"; echo "c"; echo "\n"; ------------------------------------------------------------------------ [2007-02-14 15:34:07] fuitad at gmail dot com My apologies. Apache was 2.2.4 or 2.2.2 (depending on the server) and Lighttpd was 1.4.11. ------------------------------------------------------------------------ [2007-02-14 15:27:58] mike@php.net So, I don't know your previous apache version? ------------------------------------------------------------------------ [2007-02-14 15:12:44] fuitad at gmail dot com [fmg@ib-apache1 ~]$ httpd -v Server version: Apache/2.2.4 (FreeBSD) Server built: Feb 12 2007 22:00:05 [fmg@IB-LIGHTTPD1 ~]$ lighttpd -v lighttpd-1.4.13 (ssl) - a light and fast webserver Build-Date: Feb 12 2007 21:46:29 ------------------------------------------------------------------------ [2007-02-14 15:04:22] mike@php.net Seems that your Apache serves HTTP/1.1 chunked encoded responses despite receiving HTTP/1.0 requests. Did you upgrade your Apache installation too? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/40472 -- Edit this bug report at http://bugs.php.net/?id=40472&edit=1

« previous php.bugs (#108895) next »