#20047 [Opn]: add: file() returns false on failure
| From: | philip@php.net | Date: | Wed, 23 Oct 2002 17:31:10 +0000 |
| Subject: | #20047 [Opn]: add: file() returns false on failure | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969349229@lists.php.net to get a copy of this message | ||
ID: 20047
Updated by: philip@php.net
-Summary: file documentation a little inaccurate?
Reported By: info@e-novative.de
Status: Open
Bug Type: Documentation problem
-Operating System:
+Operating System: all
-PHP Version: 4.3.0-pre1
+PHP Version: all
-Assigned To:
+Assigned To: philip
New Comment:
The documentation should state it returns false, that will be added.
Regarding mixed, if that were the case then all functions would be
documented as mixed, not very useful. Let's leave that part alone.
Previous Comments:
------------------------------------------------------------------------
[2002-10-23 12:15:42] info@e-novative.de
The documentation for the file() function does not state explicitly
that file will return false if the file does not exist. This is rather
confirmed and can be cross-checked by looking at the readfile page, but
it might be worth adding it though.
Then, shouldn´t the result data type be "mixed" instead of "array"?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20047&edit=1