-
Notifications
You must be signed in to change notification settings - Fork 11
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
is_file (and fopen) fails with files > 2GB #3
Comments
I tested everything on Windows Server. It is not affected. I have Linux Mint x64 on virtual I'll try it there. |
Method |
Using NTFS on Windows Server. |
jkuchar
pushed a commit
that referenced
this issue
Oct 21, 2013
…an 2GB (better but not ideal solution; related to #3)
Not sure if it resolves your problem, is it better? df9e05e |
Closed due to innactivity. Reopen anytime if it is still relevant. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This affects path validation in constructor. For files with size over PHP_INT_MAX
is_file
returns FALSE. Functionsis_link
,is_dir
,is_readable
,file_exists
are not affected. I tried following:For files under 2GB works
file_exists && is_file
as before, and for bigger onesfile_exists && !is_file && !is_dir
. I'm not sure if this is optimal, I just hope there are no file types that would return FALSE for bothis_file
andis_dir
. :-)Env.: PHP 5.3.5, 64bit machine with 32bit Suse linux 11.4
Tried with 670MB, 2.6GB, 4.6GB and 6.8GB files and symlinks to them.
The text was updated successfully, but these errors were encountered: