go to bug id or search bugs for
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.
// The header() is just so that var_dump()'s output looks good in browser
// I'm aware that getallheaders() gets *request* headers
<b>Fatal error</b>: Call to undefined function getallheaders() in <b>D:\Projects\test.php</b> on line <b>3</b><br />
Add a Patch
Add a Pull Request
I'm extending this request to include apache_response_headers() as well as apache_request_headers() (which getallheaders() is but an alias of).
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.