From 449fd139923052e8d0a387653235d33acf161bd5 Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Sun, 10 Feb 2002 00:38:40 +0000 Subject: [PATCH] Reverting this; the second parameter is indeed optional in versions newer than 4.1.0 (also added a note to this effect). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@69875 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/filesystem.xml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/functions/filesystem.xml b/functions/filesystem.xml index 28928e4c39..33ffdd85b3 100644 --- a/functions/filesystem.xml +++ b/functions/filesystem.xml @@ -1,5 +1,5 @@ - + Filesystem functions Filesystem @@ -556,7 +556,7 @@ fclose ($fp); stringfgets intfp - intlength + intlength Returns a string of up to length - 1 bytes read from the file @@ -572,8 +572,8 @@ fclose ($fp); Common Pitfalls: - People used to the 'C' semantics of fgets should note the - difference in how EOF is returned. + People used to the 'C' semantics of fgets + should note the difference in how EOF is returned. The file pointer must be valid, and must point to a file @@ -581,6 +581,12 @@ fclose ($fp); popen, or fsockopen. + + + The length parameter is only optional in + PHP 4.1.0 and newer versions. + + A simple example follows: