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

filemtime() fails for large files #4

Open
serseb opened this issue Nov 3, 2014 · 3 comments
Open

filemtime() fails for large files #4

serseb opened this issue Nov 3, 2014 · 3 comments

Comments

@serseb
Copy link

serseb commented Nov 3, 2014

The following line generates a warning like: "Warning: filemtime(): stat failed for wfio://path_to_largefile.ext":
filemtime("wfio://path_to_largefile.ext")

while filemtime("path_to_largefile.ext.ext") works and returns the correct timestamp

I think the problem lies in manipulating files over 2GB in size

I overcome this by using the path without the wrapper but only for files named in ASCII

@kenjiuno
Copy link
Owner

kenjiuno commented Nov 3, 2014

Hi.

Thanks for the report!

I will check later.

@kenjiuno
Copy link
Owner

kenjiuno commented Nov 8, 2014

Hi.

I have improved wfio's stat routine.
It can support filemtime for a large file.
However filesize/stat functions cannot return actual file size over than 2GB.

Finally wfio 0.2 and its Windows binaries are now available!

https://github.com/kenjiuno/php-wfio/releases

There are many variants for this release:

php5.6\TS_VC11_x64
php5.6\TS_VC11
php5.6\NTS_VC11_x64
php5.6\NTS_VC11

php5.5\TS_VC11_x64
php5.5\TS_VC11
php5.5\NTS_VC11_x64
php5.5\NTS_VC11

php5.4\TS_VC9
php5.4\NTS_VC9

@serseb
Copy link
Author

serseb commented Nov 8, 2014

It's seems that now it's working great for all php file functions (except touch(), which does not support wrappers). Great work!

Thanks!

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

No branches or pull requests

2 participants