ID:               40472
 Updated by:       [EMAIL PROTECTED]
 Reported By:      fuitad at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Output Control
 Operating System: FreeBSD
 PHP Version:      5.2.1
 New Comment:

This is not a "number bug". It's called chunked transfer encoding.

Try one with HTTP/1.0, and you'll see.




Previous Comments:
------------------------------------------------------------------------

[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>

------------------------------------------------------------------------

[2007-02-14 15:46:20] [EMAIL PROTECTED]

I can't reproduce:

[EMAIL PROTECTED]:~$ 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.
[EMAIL PROTECTED]:~$ 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.
[EMAIL PROTECTED]:~$ cat /www/html/abc.php
<?php
ob_implicit_flush(1);
while( @ob_end_clean() );
echo "a";
echo "b";
echo "c";
echo "\n";


------------------------------------------------------------------------

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

Reply via email to