|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-08-02 00:33 UTC] fat@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: fat
[2011-08-02 01:14 UTC] fat@php.net
-Status: Assigned
+Status: Bogus
[2011-08-02 01:14 UTC] fat@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 23:00:02 2025 UTC |
Description: ------------ There is a problem when headers sent from a script are longer than 4008 (see the test sript below). I'm currently using FPM with nginx 1.0.5. If headers are longer than 4008, this happens: for 4008, everything is OK, for 4009, no output is displayed, for 4010+, HTTP error 502 is returned. Similar problem has been verified under PHP 5.3.5 with different boundaries: 4012 is OK, 4013 is OK, but with no output, 4014 gives 502. Test script: --------------- OK: header(str_repeat('x', 4008)); echo 'foo'; -------------------------------- OK, but no output: header(str_repeat('x', 4009)); echo 'foo'; -------------------------------- HTTP error 502: header(str_repeat('x', 4010)); //or anything higher echo 'foo'; -------------------------------- OK: header(str_repeat('x', 2000)); header(str_repeat('y', 2006)); echo 'foo'; -------------------------------- OK, no output: header(str_repeat('x', 2000)); header(str_repeat('y', 2007)); echo 'foo'; -------------------------------- 502: header(str_repeat('x', 2000)); header(str_repeat('y', 2008)); echo 'foo'; Expected result: ---------------- foo