-
Notifications
You must be signed in to change notification settings - Fork 264
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 7.2] sizeof(): Parameter must be an array or an object that implements Countable #131
Comments
@muslimakhan Are You capable of (ie, have permissions?) to create tag with this fix so that it would allow installing it with composer? |
Everyone who have this issue and using composer: Add to composer.json and |
Hello, is there a way for this change to be present in version 2.1 shown at https://packagist.org/packages/masterexploder/phpthumb#2.1 ?. I understand that it can be obtained from the version " Thanks. |
I know that this project seems abandoned... But here's the issue with sizeof:
The problem is that options are defined without value:
So in fact are initialized with
null
, not empty array.Then there is check for array size with
sizeof
(alias forcount
).Workaround
Create class:
And use this new class instead of GD.
The text was updated successfully, but these errors were encountered: