-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various attributes are missing from $_SERVER #2560
Comments
Having updated this test case to use PHP-FPM, it appears that the omission of PHP_AUTH_PW and PHP_AUTH_USER is actually due to the use of FastCGI, for some reason. Still, there are differences between the
and adds all of these:
I assume the missing variables at least are backwards-incompatible, so I'll leave this issue open. If anyone with better knowledge thinks these differences are deliberate or harmless, then feel free to close it. |
Not exactly a dupe of #2646, but the fix we've got for that fixes this too. |
On second thoughts, nope, those magic ones aren't fixed there. |
I have created an automated test for this at: https://github.com/jameshfisher/hhvmbug
Install Vagrant and run
test.sh
.At the end of this script it runs a diff that shows that HHVM omits the PHP_AUTH_PW and PHP_AUTH_USER keys from the $_SERVER variable when a client uses basic auth. These are the only keys that HHVM omits.
The text was updated successfully, but these errors were encountered: