From:             aya at eh dot org
Operating system: Linux
PHP version:      5.2.4
PHP Bug Type:     Output Control
Bug description:  Non-standards-compliant change in 'Connection' HTTP response 
header

Description:
------------
There seems to have been a change in the 'Connection' output header for
HTTP/1.0 requests somewhere between PHP v5.2.0 and PHP v5.2.3.

IIRC, according to the relevant RFCs, When processing an HTTP/1.0 request,
the server should respond with an HTTP/1.1 response line if it supports
HTTP/1.1, but the entity headers should be compatible with HTTP/1.0.

A simple "GET / HTTP/1.0" to a PHP page in v5.2.0 returns...

HTTP/1.1 200 OK
Connection: close
...other stuff...

...and then closes the connections as soon as the entity has been sent.

However, the same request in v5.2.3 returns...

HTTP/1.1 200 OK
...other stuff...

...and then waits for another request, without sending a "Connection:
keep-alive" header. This is the correct behaviour for an HTTP/1.1 request,
but not an HTTP/1.0 request.

In practise, this change prevents apachebench from working correctly
against PHP scripts.



-- 
Edit bug report at http://bugs.php.net/?id=42779&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42779&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42779&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42779&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42779&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42779&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42779&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42779&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42779&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42779&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42779&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42779&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42779&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42779&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42779&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42779&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42779&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42779&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42779&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42779&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42779&r=mysqlcfg

Reply via email to