-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Make tests run with HHVM #1511
Comments
A good idea is to wait a bit since Facebook HHVM team is working on the next version with much better support for standard PHP functionality and extras. |
yep, 2.4.0 will make __get and __set work properly. This is the main issue with failing tests right now. |
HHVM 2.4.0 is released. |
thanks for the info. need to wait until it is available on travis. |
2.4.0 is available on travis and we are now running tests against HHVM regulary. However failing tests do not count against the overall build status right now. Here is a HHVM build: |
Current issues open with HHVM:
|
When I try to run my Yii2 site (based on advanced template) I get this error: ipHop Fatal error: Uncaught exception 'yii\base\ErrorException' with message 'Array to string conversion' in /var/www/vendor/yiisoft/yii2/di/ServiceLocator.php:188
Stack trace:
#0 (): yii\base\Application->handleError()
#1 /var/www/vendor/yiisoft/yii2/di/ServiceLocator.php(188): is_callable()
#2 /var/www/vendor/yiisoft/yii2/di/ServiceLocator.php(252): yii\di\ServiceLocator->set()
#3 /var/www/vendor/yiisoft/yii2/base/Component.php(168): yii\di\ServiceLocator->setComponents()
#4 /var/www/vendor/yiisoft/yii2/BaseYii.php(492): yii\base\Component->__set()
#5 /var/www/vendor/yiisoft/yii2/base/Object.php(104): yii\BaseYii::configure()
#6 /var/www/vendor/yiisoft/yii2/base/Application.php(165): yii\base\Object->__construct()
#7 /var/www/backend/web/index.php(24): yii\base\Application->__construct()
#8 {main}
exception 'yii\base\InvalidConfigException' with message 'Unknown component ID: log' in /var/www/vendor/yiisoft/yii2/di/ServiceLocator.php:132
Stack trace:
#0 /var/www/vendor/yiisoft/yii2/base/Application.php(422): yii\di\ServiceLocator->get()
#1 /var/www/vendor/yiisoft/yii2/BaseYii.php(374): yii\base\Application->getLog()
#2 /var/www/vendor/yiisoft/yii2/base/Application.php(673): yii\BaseYii::error()
#3 /var/www/vendor/yiisoft/yii2/base/Application.php(539): yii\base\Application->logException()
#4 (): yii\base\Application->handleException()
#5 {main}
Previous exception:
exception 'yii\base\ErrorException' with message 'Array to string conversion' in /var/www/vendor/yiisoft/yii2/di/ServiceLocator.php:188
Stack trace:
#0 (): yii\base\Application->handleError()
#1 /var/www/vendor/yiisoft/yii2/di/ServiceLocator.php(188): is_callable()
#2 /var/www/vendor/yiisoft/yii2/di/ServiceLocator.php(252): yii\di\ServiceLocator->set()
#3 /var/www/vendor/yiisoft/yii2/base/Component.php(168): yii\di\ServiceLocator->setComponents()
#4 /var/www/vendor/yiisoft/yii2/BaseYii.php(492): yii\base\Component->__set()
#5 /var/www/vendor/yiisoft/yii2/base/Object.php(104): yii\BaseYii::configure()
#6 /var/www/vendor/yiisoft/yii2/base/Application.php(165): yii\base\Object->__construct()
#7 /var/www/backend/web/index.php(24): yii\base\Application->__construct()
#8 {main} I noticed that the file involved ( |
Seems already fixed? facebook/hhvm#1995 |
Travis for HHVM is currently broken so we can't be sure. Anyway, this is not a showstopper. |
hi what about yii2 and hhvm ? |
99.8% compatible. |
it's about yii2 ? i read in hhvm site 99.8 for yii1 |
Ahh, right, it's about 1.1. |
i'm courius to know somethink about yii2 and hhvm, i see that @cebe it's working on. |
Same here, I'm eagerly awaiting compatibility. I'm also curious about the first major framework to convert to the new Hack language. I would actively support such a move for Yii2 in the mid-term future, but I understand that this would probably alienate a large part of the user base who rely on shared hosting based on the Zend PHP runtime. |
php need a bump.... the goog news is that hack is retro compatibile with php. |
@docsolver no, Yii will not be converted to Hack for the reasons you've mentioned. @gimox hack is not backwards compatibile with php. HHVM is. That's why HHMV is important for Yii while Hack isn't. |
@samdark you right, hack interoperates as php but is not 100% compatible (only simple script) so has no sense to use it now, it's too young... hhvm is the future... |
Added HHVM build status from http://hhvm.h4cc.de/ to issue header. |
Thanks, yii2 now is in unknow status. |
Since the release of HHVM 3.0.0 I got my Yii2 site working, but it crashes on a lot of things. I already logged two issues, but I also don't want to delay the beta release date. Maybe HHVM support can be a next milestone? |
That's not a priority. If you want to help you can track these crashes down to simple PHP code pieces and submit to HHVM repo issue tracking. |
Ok, I'll try to! |
sent a PR to add yii2 to the official test suite: facebook/hhvm#2953 |
facebook/hhvm#1486 is still there. |
yes, I know |
all tests are passing. |
Is Yii2 failing the HHVM test after all the new commits? |
no, why do you ask? |
See http://www.hhvm.com/blog/2393/hhvm-2-3-0-and-travis-ci
yiisoft/yii#3109 (comment)
https://travis-ci.org/yiisoft/yii2/jobs/15426064
reported some issues on hhvm and travis:
facebook/hhvm#1347
travis-ci/travis-ci#1565 (comment)
related issue for 1.1: yiisoft/yii#3110
The text was updated successfully, but these errors were encountered: