-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Composer Errors using HHVM in PHP-7 Mode #5978
Comments
It seems HHVM fails on an Not sure why it would fail on that in php7 mode though. We could add another env to our |
Weird, running the test suite on hhvm with php7 mode does not result in any errors. See #5979 |
Edit: see response from @Seldaek |
@alcohol that last post is wrong, HHVM provides a PHP_VERSION constant and we use that to create the @robfrawley The rtrim failure seems like an interop bug in HHVM, rtrim definitely should not fail on NULL values, but anyway I worked around that in 1464146 and you can try again with latest Composer snapshot see if it runs further this time. |
@Seldaek I was not aware of that. Good to know. |
@Seldaek There is an additional notice-level issue with another string function, but as that doesn't cause the process to halt, this fix does allow Composer to successfully run. Thanks! The new notice is related to the same interop bug you linked to, but in this case, doesn't halt script execution, so I'd suggest it isn't fixed in Composer as it should just go away once they issue a fix for that bug. Also, it doesn't provide any information as to where it is being caused, even in verbose mode. Anyway, cheers. Thanks for the fix. |
@robfrawley I'm also seeing |
@photodude Yup; that was it! |
FYI composer should work correctlyin HHVM's PHP7 mode in 3.20.2 and later |
My
composer.json
:The output of
composer diagnose --verbose
:When I run this command:
With the following contents in
hhvm.ini
:I get the following output:
And I expected this to happen: Composer to update my dependencies and properly recognize HHVM as meeting the following requirement:
When I run this command:
Which doesn't include the
hhvm.ini
file to enable PHP 7 mode, I get the correct, expected result of:The following script:
Run with
php-7.1
binary,hhvm
binary (no php7 mode enabled), andhhvm
(with php7 mode enabled):Related to twigphp/Twig#2305 and twigphp/Twig#2302.
The text was updated successfully, but these errors were encountered: