#21410 [NEW]: filetype() should not print a warning on failure
| From: | ari at alienhosting dot com | Date: | Sat, 04 Jan 2003 19:29:52 +0000 |
| Subject: | #21410 [NEW]: filetype() should not print a warning on failure | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-29056@lists.php.net to get a copy of this message | ||
From: ari@alienhosting.com
Operating system: Red Hat Linux 7.3
PHP version: 4.3.0
PHP Bug Type: Filesystem function related
Bug description: filetype() should not print a warning on failure
In the filetype() doc, it says the function returns FALSE on error, but
says nothing about a warning being output if it fails. In 4.3.0, A warning
is printed:
Warning: filetype() [function.filetype]: Lstat failed for (null) (errno=2
- No such file or directory) in
/home/alienhosting/public_html/webmail/plugins/administrator/options.php
on line 431
--
Edit bug report at http://bugs.php.net/?id=21410&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21410&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21410&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21410&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21410&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21410&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21410&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21410&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21410&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21410&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21410&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21410&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21410&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21410&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21410&r=gnused