php-wfio icon indicating copy to clipboard operation
php-wfio copied to clipboard

filemtime() fails for large files

Open serseb opened this issue 10 years ago • 3 comments

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

serseb avatar Nov 03 '14 14:11 serseb

Hi.

Thanks for the report!

I will check later.

kenjiuno avatar Nov 03 '14 21:11 kenjiuno

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

kenjiuno avatar Nov 08 '14 14:11 kenjiuno

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

Thanks!

serseb avatar Nov 08 '14 19:11 serseb