#35306 [NEW]: file_get_contents does not take 5 parameters as specified in PHP Manual
| From: | kpeters at monolithss dot com | Date: | Sun, 20 Nov 2005 20:31:32 +0000 |
| Subject: | #35306 [NEW]: file_get_contents does not take 5 parameters as specified in PHP Manual | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969370955@lists.php.net to get a copy of this message | ||
From: kpeters at monolithss dot com
Operating system: SuSE Linux 9.3
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: file_get_contents does not take 5 parameters as specified in PHP Manual
Description:
------------
On both PHP 4.3.10 and PHP 5.0.3, when attempting to call
file_get_contents with five parameters as specified in the manual
(http://us3.php.net/manual/en/function.file-get-contents.php) I get the
following errors:
PHP 4.3.10:
"Warning: file_get_contents() expects at most 2 parameters, 5 given"
PHP 5.0.3:
"PHP Warning: file_get_contents() expects at most 3 parameters, 5 given"
Reproduce code:
---------------
$file = file_get_contents($filename, null, null, $offset, $maxlength);
Expected result:
----------------
I should get up to $maxlength bytes starting from $offset in $filename.
Actual result:
--------------
warning message as described above.
--
Edit bug report at http://bugs.php.net/?id=35306&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35306&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35306&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35306&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35306&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35306&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35306&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35306&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35306&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35306&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35306&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35306&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35306&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35306&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35306&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35306&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35306&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35306&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35306&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35306&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35306&r=mysqlcfg