From: bodik at civ dot zcu dot cz Operating system: Linux PHP version: 5.2.6 PHP Bug Type: HTTP related Bug description: incorrect forcing HTTP protocol version
Description: ------------ hi, I think that #42779 could still not be entirely resolved. On my server I just found that part of this problem is still present in 5.2.6. Server still responds with chunked encoding (could in http1.1) on 1.0 request (it must not). I thing it's related with downgrading protocol and it's features. on other server with 5.2.0 is responding correctly: * chunked on 1.1 request * nonchunked on 1.0 request I hope I'm submitting theese notes on correct place... bodik Reproduce code: --------------- [EMAIL PROTECTED]:/tmp/cerno$ cat bodik GET /uredni-deska/ HTTP/1.0 Host: www.mydomain.cz [EMAIL PROTECTED]:/tmp/cerno$ cat bodik | nc my.hosting.server 80 | head -n20 HTTP/1.1 200 OK Date: Wed, 12 Nov 2008 18:53:55 GMT Server: Apache X-Powered-By: PHP/5.2.6 Set-Cookie: PHPSESSID=jjtbppo2vs39a0pefi417vgv12; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Transfer-Encoding: chunked Content-Type: text/html ad00 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Expected result: ---------------- [EMAIL PROTECTED]:/tmp/cerno$ cat bodik GET /uredni-deska/ HTTP/1.0 Host: www.mydomain.cz [EMAIL PROTECTED]:/tmp/cerno$ cat bodik | nc my.server 80 | head -n20 HTTP/1.1 200 OK Date: Wed, 12 Nov 2008 18:53:55 GMT Server: Apache X-Powered-By: PHP/5.2.6 Set-Cookie: PHPSESSID=jjtbppo2vs39a0pefi417vgv12; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Actual result: -------------- result is bad behavior with HTTP/1.0 clients/proxies -- Edit bug report at http://bugs.php.net/?id=46559&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46559&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46559&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46559&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46559&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46559&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46559&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46559&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46559&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46559&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46559&r=support Expected behavior: http://bugs.php.net/fix.php?id=46559&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46559&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46559&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46559&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46559&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46559&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46559&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46559&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46559&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46559&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46559&r=mysqlcfg
