#21410 [Opn->Csd]: filetype() should not print a warning on failure

From: Date: Sat, 04 Jan 2003 20:43:23 +0000
Subject: #21410 [Opn->Csd]: filetype() should not print a warning on failure
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969350684@lists.php.net to get a copy of this message
ID: 21410 Updated by: nicos@php.net Reported By: ari@alienhosting.com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Red Hat Linux 7.3 PHP Version: 4.3.0 New Comment: The documentation now warns about the warnings :-) Thank you for your report. Previous Comments: ------------------------------------------------------------------------ [2003-01-04 14:37:31] nicos@php.net Changing this bug to a documentation problem. The warning are now expected for 2 cases: when stat or lstat have failed and when the file type is unknown. I'm working on fixing the documentation. ------------------------------------------------------------------------ [2003-01-04 13:29:51] ari@alienhosting.com 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 this bug report at http://bugs.php.net/?id=21410&edit=1

« previous php.doc (#969350684) next »