-
-
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
PHP Compile error since last update #2655
Comments
Can you post full error stack? |
Aha. That is @qiangxue seems to be your change for API. Can you take a look? |
I wonder why I'm not getting this error (updated 5 min ago to see it for myself). UPD: php 5.5.3 |
@davey-w which PHP version do you have? |
@samdark same here, 5.4.12 |
@o-rey are you using any models? |
@samdark yes, I use a lot of models :) And no, it just works. No errors/notices at all. Php 5.5.3 / ubuntu. Any special code I should run to get into this? I remember some strange things happened some time ago, but they were caused by buggy opcache in my installation. |
Hmm, actually tried advanced application with lots of models and no error appeared. I have 5.5.4. |
I'm running on PHP 5.4.12 |
Tried 5.4.20 as well. No error. |
I think it was an issue in PHP 5.4.12 which was fixed in 5.4.14. Not sure if it's related though. |
Hmm i see, is there a way to avoid this? Since i'm running WAMP (64-bit) and 5.4.12 is only available for that. |
We may need to confirm if this is indeed an issue introduced in 5.4.12, and what about 5.4.11 and 5.4.13. @subdee Could you please try the following three pieces of code (separately) and see if they work fine? class Test11
{
public function test()
{
}
}
class Test12 extends Test11
{
public function test($a = 1)
{
}
} interface Test21
{
public function test();
}
class Test22 implements Test21
{
public function test($a = 1)
{
}
} interface Test31
{
public function test();
}
trait Test31Trait
{
public function test($a = 1)
{
}
}
class Test32 implements Test31
{
use Test31Trait;
} Reopened for as further investigation is needed. |
@qiangxue Only the last one with the trait fails on php 5.4.12 and 5.4.13 |
PHP Version 5.4.4-14+deb7u7 - all is well. |
@o-rey Do you mean 5.4.4 to 5.4.14 all worked fine? I'm curious how did you manage to test so many versions easily? |
haha I think he meant a specific revision of 5.4.4 for Debian |
@qiangxue oops sorry :) it's only one installation that I have by chance on remote. |
looks like travis can do this for us: 315cfbc https://travis-ci.org/yiisoft/yii2/builds/20288396 |
Nice :) |
oh, looks like not all the versions are possible. lets wait for the result. |
Good try. @subdee Thanks for the info. It seems 5.4.11, 5.4.12, 5.4.13 all have problem. 5.4.10 and 5.4.21 are fine. |
Options to deal with this issue:
Which one do you like? |
My thoughts.
|
I'm not sure but I think maybe people don't like unsupported thing. |
* 'master' of github.com:yiisoft/yii2: Make code coverage work Note about embedded documents added to mongodb extension readme yii\mongodb\file\Collection::ensureMongoId() fixed to suppress exception on invalid _id format. yii\mongodb\file\ActiveRecord::update() fixed to save the attributes while updating file. Fixes #2661: Added boolean column type support for SQLite Refactored controller creation process. Added back some toArray() implementations. Fixed test break. Update console-migrate.md Fixes #2655: Arrayable and ArrayableTrait are incompatible for some PHP versions. Fixes #2659 Minor code style fixes for apidoc Changed assertions fix tests
Since last update i get this error (PHP Compile Error):
The text was updated successfully, but these errors were encountered: