|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2013-10-17 18:48 UTC] ajf at ajf dot me
[2013-11-18 22:06 UTC] ajf@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: ajf
[2013-11-18 22:06 UTC] ajf@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ The built-in CLI web server does not support getallheaders(). Given that projects may need to support headers unavailable in $_SERVER and that both Apache and FastCGI support it, it is unfortunate that the CLI web server does not. I expect this would not be difficult to implement, considering that the CLI web server likely already has this information at its disposal. Test script: --------------- <?php // The header() is just so that var_dump()'s output looks good in browser // I'm aware that getallheaders() gets *request* headers header('Content-Type: text/plain'); var_dump(getallheaders()); Expected result: ---------------- array(0) { ... } Actual result: -------------- <br /> <b>Fatal error</b>: Call to undefined function getallheaders() in <b>D:\Projects\test.php</b> on line <b>3</b><br />