-
Notifications
You must be signed in to change notification settings - Fork 58
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 throw the sizeof warning #26
Comments
well $filepath seems to be a string so i replaced strlen($filepath) with sizeof or count. and it worked for me |
Hi, It looks like we need "filesize" function instead of "sizeof" to fix this error. I changed this and it works perfectly. If it is correct please add a commit for this.
Line: 73
|
PR is merged |
Hi, |
When uploadfile under PHP 7.2 , throw the sizeof warning:
sizeof(): Parameter must be an array or an object that implements Countable
File:
vendor\jildertmiedema\laravel-plupload\src\JildertMiedema\LaravelPlupload\Receiver.php
Line: 73
$file = new UploadedFile($filePath, $originalName, 'blob', sizeof($filePath), UPLOAD_ERR_OK, true);
I found this:
http://www.php.net/count
7.2.0 count() will now yield a warning on invalid countable types passed to the array_or_countable parameter.
Waiting Help,Thanks!
The text was updated successfully, but these errors were encountered: