php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37283 headers_list example produced with buggy Apache2 SAPI
Submitted: 2006-05-02 20:08 UTC Modified: 2006-05-03 11:30 UTC
From: mike@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2006-05-02 20:08 UTC] mike@php.net
Description:
------------
Since PHP-5.1.3 a bug in the Apache2 SAPI, which procuded truncated headers (just right where the colon should be), was fixed.

Please update the example result for the headers_list function, which apparently has been generated with Apache2.


Reproduce code:
---------------
$ sapi/cgi/php <<< '<?php print_r(headers_list());'



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-02 21:23 UTC] bjori@php.net
Patches are always welcomed, no matter how small they are.

http://php.is/bugs/phpdoc/phpdoc.headers-list.patch.txt
 [2006-05-02 21:25 UTC] nlopess@php.net
of course ;)

But this one isn't good surely (the string lenght):
-  string(12) "X-Powered-By"
+  string(12) "X-Powered-By: PHP/5.1.3"
 [2006-05-02 21:30 UTC] bjori@php.net
Updated, sorry ;)
 [2006-05-03 11:30 UTC] colder@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Thanks for the patch!
 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of colder
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=41167bc39e961b1f0f64ce6d6a575b23ab4937c8
Log: Fix #37283 (sync with a bug fixed in 5.1.3)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Dec 19 21:00:01 2025 UTC