-
Notifications
You must be signed in to change notification settings - Fork 638
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
array_column broken in PHP 7.0.32, breaks services/Plugins.php #3453
Comments
Exactly the same thing was happening to me, but it has also mysteriously stopped. I think something was done to the php install, but I'm not sure what. It is still reporting 7.0.32 |
We just released 3.0.30.2 with a fix for this. |
The same issue in PHP 7.0.33 |
@djAjax where? the particular array_column() call this issue is about has been updated. Can you post a new issue, and include a stack trace pulled from your log files in |
Description
As part of
services/Plugins.php
, it does the following:https://github.com/craftcms/cms/blob/develop/src/services/Plugins.php#L236
array_column()
is apparently broken on PHP 7.0.32, and possibly earlier, since the change list for PHP 7.0.32 is pretty sparse: http://php.net/ChangeLog-7.phpIt just returns an empty array here, which then causes
array_multisort()
to throw an exception, since the arrays of of a different length.@engram-design wrote this alternate code, which causes it to work fine:
Steps to reproduce
@engram-design narrowed it down to a simple test case:
Additional info
Submitted PHP bug: https://bugs.php.net/bug.php?id=77119
The text was updated successfully, but these errors were encountered: