#21460 [NEW]: Online manual doc issue
| From: | php at pgregg dot com | Date: | Mon, 06 Jan 2003 12:08:02 +0000 |
| Subject: | #21460 [NEW]: Online manual doc issue | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969350719@lists.php.net to get a copy of this message | ||
From: php@pgregg.com
Operating system: n/a
PHP version: 4.3.0
PHP Bug Type: Documentation problem
Bug description: Online manual doc issue
In function.file-get-contents.php it says "Identical to readfile(), except
that file_get_contents() returns the file in a string." which is
wrong... (or misleading at best)...
readfile() immediately outputs the file and the return value from the
function is success or failure.
file_get_contents() does not behave like this at all.
I would suggest that the document reads:
"Identical to file(), except that file_get_contents() returns the file in
a string."
Since the return values from both functions are the contents of the file,
just in different formats (array vs string).
Paul, aka Qube@#php
--
Edit bug report at http://bugs.php.net/?id=21460&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21460&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21460&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21460&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21460&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21460&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21460&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21460&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21460&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21460&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21460&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21460&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21460&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21460&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21460&r=gnused