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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: waldschrott@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-06 18:35 UTC] stas@php.net
fixed in CVS, please check
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 19:00:01 2026 UTC