ID: 40472 User updated by: fuitad at gmail dot com Reported By: fuitad at gmail dot com -Status: Bogus +Status: Open Bug Type: Output Control Operating System: FreeBSD PHP Version: 5.2.1 New Comment:
Compare these two files http://www.fuitad.com/test.php http://www.fuitad.com/test.html The static one does not have any problem while the php one does the chunk problem. Previous Comments: ------------------------------------------------------------------------ [2007-02-14 16:10:49] [EMAIL PROTECTED] This is not a "number bug". It's called chunked transfer encoding. Try one with HTTP/1.0, and you'll see. ------------------------------------------------------------------------ [2007-02-14 16:10:43] fuitad at gmail dot com Here is a way I found to reproduce the bug http://www.fuitad.com/test.phps <? phpinfo(); ?> also worked. It seems that this bug only occurs when the response is over a certain size. Hence why your tests did not work. ------------------------------------------------------------------------ [2007-02-14 15:58:01] fuitad at gmail dot com I just realized something interesting... Those telnet calls I did, none of them comes from a proxy. They are direct, yet the weird number bug appears still. ------------------------------------------------------------------------ [2007-02-14 15:54:41] fuitad at gmail dot com [EMAIL PROTECTED] ~]$ telnet fuitad.com 80 Trying 209.172.63.166... Connected to fuitad.com. Escape character is '^]'. GET / HTTP/1.1 Host:fuitad.com Connection: close HTTP/1.1 200 OK Date: Wed, 14 Feb 2007 16:01:11 GMT Server: Apache/2.2.4 (FreeBSD) mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 PHP/5.2.1 with Suhosin-Patch X-Powered-By: PHP/5.2.1 X-Pingback: http://www.fuitad.com/xmlrpc.php Status: 200 OK Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 43a2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> In both cases, I did not leave the rest of the HTML as it was irrelevant. ------------------------------------------------------------------------ [2007-02-14 15:52:35] fuitad at gmail dot com [EMAIL PROTECTED] ~]$ 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> ------------------------------------------------------------------------ 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