Fwd: [PHP-DEV] Output Buffering problem w/ PHP-4.0.5RC2

From: Date: Fri, 30 Mar 2001 18:11:39 +0000
Subject: Fwd: [PHP-DEV] Output Buffering problem w/ PHP-4.0.5RC2
Groups: php.qa 
Request: Send a blank email to php-qa+get-2689@lists.php.net to get a copy of this message
Can anyone reproduce this bug? I'll try to track it down more later this evening, but interested to hear if it's widespread. Anil ----- Forwarded message from Anil Madhavapeddy <anil@recoil.org> ----- Date: Fri, 30 Mar 2001 00:25:31 +0100 From: Anil Madhavapeddy <anil@recoil.org> Reply-To: Anil Madhavapeddy <anil@recoil.org> Subject: [PHP-DEV] Output Buffering problem w/ PHP-4.0.5RC2 To: php-dev@lists.php.net Making HEAD requests to a page which has had output buffering activated just results in the connection being closed with no response. This makes it pretty unusable. Can anyone else reproduce this problem? Two scripts: nobuffer.php: <? print "hello world!"; ?> buffer.php: <? ob_start(); print "hello buffered world!"; ob_end_flush(); ?> nobuffer.php responds to the GET/HEAD requests fine. buffer.php responds correctly to the GET, but not the HEAD. Transcript is below: [avsm@brick /]$ telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /~avsm/nobuffer.php HTTP/1.1 Host: localhost HTTP/1.1 200 OK Date: Thu, 29 Mar 2001 22:48:24 GMT Server: Apache/1.3.12 (Unix) PHP/4.0.5RC2 mod_ssl/2.6.6 OpenSSL/0.9.5a X-Powered-By: PHP/4.0.5RC2 Transfer-Encoding: chunked Content-Type: text/html c hello world! 0 [avsm@brick /]$ telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. HEAD /~avsm/nobuffer.php HTTP/1.1 Host: localhost HTTP/1.1 200 OK Date: Thu, 29 Mar 2001 22:49:00 GMT Server: Apache/1.3.12 (Unix) PHP/4.0.5RC2 mod_ssl/2.6.6 OpenSSL/0.9.5a X-Powered-By: PHP/4.0.5RC2 Content-Type: text/html [avsm@brick /]$ telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /~avsm/buffer.php HTTP/1.1 Host: localhost HTTP/1.1 200 OK Date: Thu, 29 Mar 2001 22:49:34 GMT Server: Apache/1.3.12 (Unix) PHP/4.0.5RC2 mod_ssl/2.6.6 OpenSSL/0.9.5a X-Powered-By: PHP/4.0.5RC2 Transfer-Encoding: chunked Content-Type: text/html 15 hello buffered world! 0 [avsm@brick /]$ telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. HEAD /~avsm/buffer.php HTTP/1.1 Host: localhost Connection closed by foreign host. I'll upgrade to RC4 in a bit and check if that makes a difference (not seen the ChangeLogs between them yet) (Platform is OpenBSD-2.8-stable). There is nothing in the Apache error log. Anil -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net ----- End forwarded message ----- -- Anil Madhavapeddy, <anil@recoil.org>

« previous php.qa (#2689) next »