PHP 4.0 Bug #5904: file_exist() finds files touch() doesn´t find...
| From: | waldschrott@php.net | Date: | Tue, 01 Aug 2000 15:58:59 +0000 |
| Subject: | PHP 4.0 Bug #5904: file_exist() finds files touch() doesn´t find... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27264@lists.php.net to get a copy of this message | ||
From: waldschrott@php.net
Operating system: win32 (2k)
PHP version: 4.0 Latest CVS (01/08/2000)
PHP Bug Type: Misbehaving function
Bug description: file_exist() finds files touch() doesn´t find...
$tmpfname='tmp/test.jpg';
$r_last_mod=time()-1000;
if (file_exists($tmpfname)) touch($tmpfname,$r_last_mod);
I´ve a filename stored in $tmpfname, while file_exists() finds the file and enters condition,
touch() tells me "Warning: utime failed: No such file or directory in d:\class.x.php on line
710"
Hm, I guess nobody has used this function before on windows, perhaps its mechanism to evaluate paths
should be updated to use the same file_exists() uses...