php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14644 file_exists() generates warning on non existent files.
Submitted: 2001-12-21 10:25 UTC Modified: 2001-12-21 10:32 UTC
From: thomas at xmms dot org Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.1.0 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thomas at xmms dot org
New email:
PHP Version: OS:

 

 [2001-12-21 10:25 UTC] 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-21 10:28 UTC] derick@php.net
This is fixed in 4.2.0dev and the upcoming 4.1.1.

Derick
 [2001-12-21 10:32 UTC] thomas at xmms dot org
Great.

Thanks for prompt reply.
 [2022-02-10 07:29 UTC] linajulie09 at gmail dot com
Amazing code info. You can find and book cheap flights tickets and best holiday packages here: https://dreamworldtravel.co.uk/cheap-flights
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC