Bug #14644 [Com]: file_exists() generates warning on non existent files.
| From: | linajulie09 at gmail dot com | Date: | Thu, 10 Feb 2022 07:29:15 +0000 |
| Subject: | Bug #14644 [Com]: file_exists() generates warning on non existent files. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-239600@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=14644&edit=1
ID: 14644
Comment by: linajulie09 at gmail dot com
Reported by: thomas at xmms dot org
Summary: file_exists() generates warning on non existent
files.
Status: Closed
Type: Bug
Package: Filesystem function related
Operating System: Linux
PHP Version: 4.1.0
Block user comment: N
Private report: N
New Comment:
Amazing code info. You can find and book cheap flights tickets and best holiday packages here: https://dreamworldtravel.co.uk/cheap-flights
Previous Comments:
------------------------------------------------------------------------
[2001-12-21 10:32:13] thomas at xmms dot org
Great.
Thanks for prompt reply.
------------------------------------------------------------------------
[2001-12-21 10:28:28] derick@php.net
This is fixed in 4.2.0dev and the upcoming 4.1.1.
Derick
------------------------------------------------------------------------
[2001-12-21 10:25:40] thomas at xmms dot org
file_exists generates a "stat failed.." warning when the file is nonexistant.
This has been reported for is_file/dir/ and friends, and sure, it might be a decent thing to do
warning on those, but for this function it's simply mindboggling, the whole idea is that i do
not know if the file exists or not. And temporarily setting the report level to something that
won't print this warning is not just my cup of tea.
Guess I should start preceeding every command with @ (j/k)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=14644&edit=1