From: v1nkscaper at gmail dot com Operating system: ReadyNas DUO PHP version: Irrelevant Package: *Directory/Filesystem functions Bug Type: Bug Bug description:file* functions fail for Thumbs.db (stat failed)
Description: ------------ every function related to file information (atime,mtime,filesize,filetype...) fails when applied on "Thumbs.db" file. those functions work fine with a "icon.png" owned by same owner/group in the same directory renaming "Thumbs.db" to "foo.txt" doesn't help. if you google "stat failed thumbs.db" you'll see these bug appear on some sites. A Thumbs.db is a cache file that contains thumbnails of files that lies in a directory. Such a file is generated by Windows OS. you can download one for exemple @ http://www.broux.fr/wp- content/themes/kelta/wpv_theme/samples/ PHP 5.2.0-8+etch9~bpo31+1 (cgi-fcgi) (built: Feb 11 2008 15:40:46) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies running on 2.6.17.14ReadyNAS (AFAIK this is the last version packaged fot this system) Test script: --------------- filesize("Thumbs.db"); // warning filesize("icon.png"); // works fine Expected result: ---------------- actual size of file Actual result: -------------- Warning: filesize() [function.filesize]: stat failed for Thumbs.db when I run the stat command in the OS it works nas-NETGEAR:/test# stat Thumbs.db File: "Thumbs.db" Size: 65024 Blocks: 128 IO Block: 16384 Regular File Device: fe00h/xxxxx Inode: 79167686 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 98/ admin) Access: 2012-11-17 00:59:15.000000000 -0800 Modify: 2012-11-17 00:59:16.000000000 -0800 Change: 2012-11-17 00:59:15.000000000 -0800 -- Edit bug report at https://bugs.php.net/bug.php?id=63553&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63553&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63553&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63553&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63553&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63553&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63553&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63553&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63553&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63553&r=support Expected behavior: https://bugs.php.net/fix.php?id=63553&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63553&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63553&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63553&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63553&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63553&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63553&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63553&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63553&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63553&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63553&r=mysqlcfg