Skip to content
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

php_sapi_name return srv in fastcgi mode #6026

Open
werfu opened this issue Aug 18, 2015 · 3 comments
Open

php_sapi_name return srv in fastcgi mode #6026

werfu opened this issue Aug 18, 2015 · 3 comments

Comments

@werfu
Copy link

werfu commented Aug 18, 2015

When running HHVM in FastCGI mode, the php_sapi_name is returning the value srv while it should return cgi-fcgi or fpm-fcgi. This is causing an issue with Magento and Turpentine not setting the header content type correctly.

@werfu
Copy link
Author

werfu commented Aug 18, 2015

HipHop VM 3.8.1 (rel)
Compiler: tags/HHVM-3.8.1-0-g3006bc45691762b5409fc3a510a43093968e9660
Repo schema: 253b3802ce1bcd19e378634342fc9c245ac76c33

@Orvid
Copy link
Contributor

Orvid commented Aug 18, 2015

HHVM currently just returns RuntimeOption::ExecutionMode, as seen in ext_std_options.cpp:887. This is only ever set to either "srv" or "cli", from program-functions.cpp:868.

@werfu
Copy link
Author

werfu commented Aug 18, 2015

And from is seen in the comment of set_execution_mode, the function is called before the config has been loaded... Any possibility to change the value later once the server.ini has been loaded and the hhvm.server.type value has been read?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants