The deprecation RFC lists `apache_request_headers()`, because it is “an 
Apache-specific name is also available in other SAPIs, even though it is also 
available under the SAPI-independent name getallheaders()”.

Have you ever thought about making a more thorough and consistent change with 
other similar functions, instead of just picking one particular function 
because it is the only one in its category that has a documented alias? In five 
minutes, I’m thinking of the following obvious things:

* using a less ambiguous name than `getallheaders()`, given the existence of 
both `apache_request_headers()` and `apache_response_headers()`;

* renaming all `apache_*()` functions that are available in other SAPI into a 
SAPI-independent name;

* treating all `nsapi_*()` functions as well.

—Claude


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to