php-wfio
php-wfio copied to clipboard
filemtime() fails for large files
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
Hi.
Thanks for the report!
I will check later.
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
It's seems that now it's working great for all php file functions (except touch(), which does not support wrappers). Great work!
Thanks!