Date: 10/23/02
- Next message: leon <email protected>: "[PHP-DOC] #20050 [NEW]: Missing semicolon in example"
- Previous message: Gabor Hojtsy: "Re: [PHP-DOC] future PHP 5 Documentation"
- In reply to: info <email protected>: "[PHP-DOC] #20047 [NEW]: file documentation a little inaccurate?"
- Next in thread: philip <email protected>: "[PHP-DOC] #20047 [Opn->Csd]: add: file() returns false on failure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 20047
Updated by: hholzgra <email protected>
Reported By: info <email protected>
Status: Open
Bug Type: Documentation problem
Operating System: all
PHP Version: all
Assigned To: philip
New Comment:
if boolean false is only returned on failure
then we do not change return type to "mixed"
the type in the proto is always the success-type
Previous Comments:
------------------------------------------------------------------------
[2002-10-23 12:31:10] philip <email protected>
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.
------------------------------------------------------------------------
[2002-10-23 12:15:42] info <email protected>
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-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: leon <email protected>: "[PHP-DOC] #20050 [NEW]: Missing semicolon in example"
- Previous message: Gabor Hojtsy: "Re: [PHP-DOC] future PHP 5 Documentation"
- In reply to: info <email protected>: "[PHP-DOC] #20047 [NEW]: file documentation a little inaccurate?"
- Next in thread: philip <email protected>: "[PHP-DOC] #20047 [Opn->Csd]: add: file() returns false on failure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

