Bug #14420 Updated: is_file prints "stat failed .." message
| From: | yohgaki@php.net | Date: | Wed, 12 Dec 2001 02:05:11 +0000 |
| Subject: | Bug #14420 Updated: is_file prints "stat failed .." message | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73202@lists.php.net to get a copy of this message | ||
ID: 14420
Updated by: yohgaki
Reported By: evsvit@hotmail.com
Old Status: Feedback
Status: Duplicate
Bug Type: Scripting Engine problem
Operating System: Redhat Linux
PHP Version: 4.1.0
New Comment:
This has been discussed, but I don't remeber the conclusion.
Anyone remember that?
I think we need consistent rule for error messages....
Status = Duplicate
Previous Comments:
------------------------------------------------------------------------
[2001-12-11 17:28:10] mfischer@php.net
Please check if you changed the error_reporting() level.
Feedback.
------------------------------------------------------------------------
[2001-12-11 04:01:05] evsvit@hotmail.com
We have found it out when upgraded our PHP from ver.4.0.1 to 4.1.0 . Function is_file() prints error
message if file doesn't exist. The error message looks like:
"Warning: stat failed for /home/.../index.phtml (errno=2 - No such file or directory) in
/home/.../index.phtml on line 17"
When I tried to simulate the problem in test file - it didn't appear . But then I included my
configuration file which contained other inclusions for our corporate API. Problem appeared in the
test file. I commented inclusion line - problem still appear.
After typing the message above, I refreshed that page - problem disappeared. All further tryings to
cause error got failed.
Problem appears constanlty on our sites where we use this function.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14420&edit=1