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

From: Date: Sat, 31 Mar 2001 10:47:43 +0000
Subject: Re: Fwd: [PHP-DEV] Output Buffering problem w/ PHP-4.0.5RC2
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-2691@lists.php.net to get a copy of this message
Sigh, this causes a segfault for me when my PHP is _not_ in debug mode. When in debug mode, the request still fails, but the segfault doesn't happen (which makes the backtrace somewhat hard). Anyone got any suggestions on another way to debug it? ktrace proved pretty useless as well. Anil ----- Original Message ----- From: "Anil Madhavapeddy" <anil@recoil.org> To: <php-qa@lists.php.net> Sent: Friday, March 30, 2001 7:11 PM Subject: [PHP-QA] Fwd: [PHP-DEV] Output Buffering problem w/ PHP-4.0.5RC2 > 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> > > -- > PHP Quality Assurance Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-qa-unsubscribe@lists.php.net > For additional commands, e-mail: php-qa-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.qa (#2691) next »