Re: Bug #14420: is_file prints "stat failed .." message

From: Date: Wed, 12 Dec 2001 10:47:51 +0000
Subject: Re: Bug #14420: is_file prints "stat failed .." message
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-73252@lists.php.net to get a copy of this message
> This has been changed.  Use exists() first.  Technically, if the file does
> exist, it's not a file in my opinion and should return false, but nobody
> seems to agree with me.
> --
> Mike
>


    I just want to add to this, that I agree, and this has been changed
    for 4.2.0 (cvs HEAD), however it was not merged into the 4.1.0
    branch, as it was not a bug fix but rather a feature....

    cvs HEAD should work for everyone?

    -Sterling


> ----- Original Message -----
> From: <evsvit@hotmail.com>
> To: <php-dev@lists.php.net>
> Sent: Tuesday, December 11, 2001 5:01 AM
> Subject: [PHP-DEV] Bug #14420: is_file prints "stat failed .." message
> 
> 
> > From:             evsvit@hotmail.com
> > Operating system: Redhat Linux
> > PHP version:      4.1.0
> > PHP Bug Type:     Scripting Engine problem
> > Bug description:  is_file prints "stat failed .." message
> >
> > 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 bug report at: http://bugs.php.net/?id=14420&edit=1
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-dev-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
> 


Thread (12 messages)

« previous php.dev (#73252) next »