Skip to content
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

getSize() Issues #17

Open
darogan opened this issue Jun 20, 2017 · 1 comment
Open

getSize() Issues #17

darogan opened this issue Jun 20, 2017 · 1 comment
Labels

Comments

@darogan
Copy link
Contributor

darogan commented Jun 20, 2017

@ewels I have uncovered an issue with the getSize function in files.php (ln 191). Its giving the following error for some files:

PHP Fatal error: Uncaught RuntimeException: SplFileInfo::getSize(): stat failed for XXXX

The files look fine and open as expected on Linux, so I don't know why certain files are failing.

I fixed the error by swapping out $size = $file->getSize(); for $size = filesize($file);

I'll submit a PR when I have some more time

@ewels ewels added the bug label Jun 29, 2017
@ewels
Copy link
Owner

ewels commented Jun 29, 2017

Strange, thanks @darogan! I look forward to the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants