Date: 09/28/01
- Next message: Markus Fischer: "Re: [PHP-DEV] why does exit() print its argument?"
- Previous message: Mike Rogers: "Re: [PHP-DEV] why does exit() print its argument?"
- In reply to: Mike Rogers: "[PHP-DEV] IS_FILE() log level"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Well, file_exists() is designed to check that without a warning.
is_file() checks to see if the file is a regular file. Since we cache the
stat struct, calling one after another is ok.
Could still be that this should be an E_NOTICE. Derick changed this in
response to this bug report: http://bugs.php.net/bug.php?id=10856
CVS commit is here:
http://cvs.php.net/diff.php/php4/ext/standard/filestat.c?r1=1.64&r2=1.65&f=h
-Rasmus
On Fri, 28 Sep 2001, Mike Rogers wrote:
> It seems that is_file() is returning it's 'stat failed' at WAY too high of a
> log level. That should be classified as a notice and should truly not be
> displayed (as the entire point of IS_FILE is to check if it is a file, as it
> may not exist. The default setting for log level is E_ALL & ~E_NOTICE...
> So maybe put it in the notice section. That seems to have changed since the
> upgrade to the current CVS from 4.0.6.
> " stat failed for /tmp/testfile.tmp (errno=2 - No such file or
> directory) "
> --
> Mike
>
>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Markus Fischer: "Re: [PHP-DEV] why does exit() print its argument?"
- Previous message: Mike Rogers: "Re: [PHP-DEV] why does exit() print its argument?"
- In reply to: Mike Rogers: "[PHP-DEV] IS_FILE() log level"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

