Skip to content

Conversation

@bukka
Copy link
Member

@bukka bukka commented Jul 7, 2018

With addition of fpm_get_status we have an FPM specific function and it would be nice to have a function named in that way for getting request headers. The PR is more a cosmetic follow up to #3363 . One reason for that is to have a section in php-doc FPM documentation about its functions. I think that apache_request_headers is quite confusing as this has nothing to do with Apache in this case but kept it as an alias.

@nikic
Copy link
Member

nikic commented Jul 7, 2018

Given that we already have getallheaders(), which has an Apache-independent name and is already supported by apache, fcgi, cli-server and now also fpm, I don't think this addition is necessary. (I'm generally -1 on aliases unless we have plans to deprecate the old name.)

@bukka
Copy link
Member Author

bukka commented Jul 7, 2018

It just seems strange to name function apache_ in FPM. How about just keeping getallheaders and deprecate apache_request_headers? Or FPM wouldn't expose apache_request_headers at all maybe?

@remicollet
Copy link
Member

remicollet commented Jul 8, 2018

It just seems strange to name function apache_ in FPM.

Indeed, but this is how other SAPI define the function

How about just keeping getallheaders and deprecate apache_request_headers?

Could be the way to go.

@nikic
Copy link
Member

nikic commented Jul 19, 2018

I have added apache_request_headers() to the list of potential PHP 7.4 deprecations at https://wiki.php.net/rfc/deprecations_php_7_4#apache_request_headers_function so we don't forget about it.

I think there is nothing actionable for us to do in PHP 7.3 though, so I'd suggest closing this PR.

@bukka
Copy link
Member Author

bukka commented Jul 22, 2018

@nikic Cool!

@bukka bukka closed this Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants