You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP allows using http_response_code() in CLI mode without any error. HHVM raises a warning each time it is used and does not allow changing response code (always FALSE).
$ php test.php
bool(false)
int(295)
$ hhvm test.php
HipHop Warning: Unable to access response code, no transport in <path>/test.php on line X
bool(false)
HipHop Warning: Unable to access response code, no transport in <path>/test.php on line X
HipHop Warning: Unable to access response code, no transport in <path>/test.php on line X
bool(false)
@Majkl578, thanks for reporting this. Feel free to submit a PR if you (or anyone else reading this) gets to this before we do -- it looks like you're already working on a fix.
@scannell: Unfortunately I am just fixing our PHP framework (most popular one in Czech Republic btw.) to work with HHVM's current state, my C++ knowledge is not as good to provide fixes directly for HHVM.
PHP allows using
http_response_code()
in CLI mode without any error. HHVM raises a warning each time it is used and does not allow changing response code (alwaysFALSE
).test.php:
var_dump(http_response_code()); http_response_code(295); var_dump(http_response_code());
cli:
$ hhvm --version
HipHop VM v2.3.0-dev (rel)
Compiler: heads/master-0-g050c081b0e7abdda2c03fdb97b7a4b8d92a409f8
Repo schema: 71f997a147ebe07bafbd50086dd4e61c509513c4
The text was updated successfully, but these errors were encountered: