[PATCH] Add apache_request_headers() and apache_response_headers() to the CLI server
| From: | Andrea Faulds | Date: | Thu, 17 Oct 2013 18:59:28 +0000 |
| Subject: | [PATCH] Add apache_request_headers() and apache_response_headers() to the CLI server | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-69654@lists.php.net to get a copy of this message | ||
Hello all,
I implemented FR #65917 (getallheaders() is not supported by the built-in web server). FR #65917 is actually my own feature request; I created it because I had tried to use it with the CLI server to test an application of mine, and it wasn't available. So I went and implemented it, and since apache_response_headers() complements it and was trivial to implement as well, I have also implemented that, by copying the FastCGI code.
Pull request here: https://github.com/php/php-src/pull/496
The intent is for this to be merged into master (and hopefully 5.6). The pull request updates NEWS and UPGRADING, as well as adding a test.
Thanks for your time.
--
Andrea Faulds
http://ajf.me/