php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14111 file_exists() prints a warning when it shouldn't
Submitted: 2001-11-19 05:35 UTC Modified: 2001-12-08 12:35 UTC
From: cech at debian dot org Assigned: sterling (profile)
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 4.1.0RC1 OS: Debian
Private report: No CVE-ID: None
 [2001-11-19 05:35 UTC] cech at debian dot org
Running this code



<?file_exists("/etc/passwd/bla");?>



(where /etc/passwd exists for those non-UNIX people)



gives this warning



Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in ....





This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-19 05:40 UTC] derick@php.net
Can you provide an URL to that Debian bugreport?
 [2001-11-19 05:47 UTC] cech at debian dot org
http://bugs.debian.org/114409

 [2001-11-19 05:53 UTC] derick@php.net
Ok, I'll check it out
 [2001-11-19 06:01 UTC] derick@php.net
Assigning this to sterling, he 'fixed' the fix.
 [2001-12-08 12:35 UTC] sterling@php.net
Why assign to me, it works :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC