php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5904 file_exist() finds files touch() doesn?t find...
Submitted: 2000-08-01 17:58 UTC Modified: 2000-08-06 18:35 UTC
From: waldschrott@php.net Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Latest CVS (01/08/2000) OS: win32 (2k)
Private report: No CVE-ID: None
 [2000-08-01 17:58 UTC] waldschrott@php.net
$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...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-06 18:35 UTC] stas@php.net
fixed in CVS, please check
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 16:01:30 2024 UTC