php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14109 file_exists() prints a warning when it shouldn't
Submitted: 2001-11-19 05:35 UTC Modified: 2001-11-19 05:38 UTC
From: cech at debian dot org Assigned:
Status: Not a bug Package: *Directory/Filesystem functions
PHP Version: 4.1.0RC1 OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
44 - 5 = ?
Subscribe to this entry?

 
 [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:38 UTC] derick@php.net
Submitting once is enough!
 [2003-01-23 18:50 UTC] epplestun at alaplaya dot com
I have the same problem of you, and I don't know if is a bug or not :( me warnig is this:

<b>Warning</b>:  lstat failed for prueba (errno=2 - No existe el fichero o
el directorio) in
<b>/root/php-eddi-dev/tests/php-eddi-dev/php-eddi-dev.php</b> on line
<b>80</b><br>/root/php-eddi-dev/tests/php-eddi-dev/php-eddi-dev.php(80) :
Warning - lstat failed for prueba (errno=2 - No existe el fichero o el
directorio)

You can see me message in: http://bugs.php.net/?id=21848&edit=2
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Jun 21 00:01:26 2019 UTC