hi, On Fri, Sep 9, 2011 at 5:56 PM, Matthew Weier O'Phinney <weierophin...@php.net> wrote: > On 2011-09-08, Karoly Negyesi <kar...@negyesi.net> wrote: >> It seems to be the case but this is not documented anywhere on >> php.net. Instead >> http://php.net/manual/en/function.apache-request-headers.php say "You >> can also get at the value of the common CGI variables by reading them >> from the environment".
By the way, it is maybe important to notice that this function is not apache specific (yes, bad naming). We may alias it and create a new one called sapi_get_request_headers or something along this line instead. > That said, I'd really love to have a method in PHP for retrieving request > headers, either singly or as a list. Having to parse through $_SERVER has > always > felt hackish. Yes, a common function for all SAPIs make sense. Let see if we can get the sapi_get_request/answer_headers in place for 5.4 using exising ones. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php