From 907a26ed5bf318755483f4337196a68a57c140c1 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 5 Apr 2006 16:20:04 +0000 Subject: [PATCH] Describe current default of length (bug #36976) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@210817 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/fgets.xml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/reference/filesystem/functions/fgets.xml b/reference/filesystem/functions/fgets.xml index 2aca4610cc..970e14077e 100644 --- a/reference/filesystem/functions/fgets.xml +++ b/reference/filesystem/functions/fgets.xml @@ -1,5 +1,5 @@ - + @@ -18,7 +18,8 @@ the file pointed to by handle. Reading ends when length - 1 bytes have been read, on a newline (which is included in the return value), or on EOF (whichever comes first). If no length - is specified, the length defaults to 1k, or 1024 bytes. + is specified, it will keep reading from the stream until it reaches + the end of the line. If an error occurs, returns &false;. @@ -56,9 +57,7 @@ if ($handle) { The length parameter became optional in PHP - 4.2.0, if omitted, it would assume 1024 as the line length. - As of PHP 4.3, omitting length will keep - reading from the stream until it reaches the end of the line. + 4.2.0. Until PHP 4.3.0, omitting it would assume 1024 as the line length. If the majority of the lines in the file are all larger than 8KB, it is more resource efficient for your script to specify the maximum line length.