svn: /phpdoc/en/trunk/reference/filesystem/functions/ fwrite.xml

From: Date: Tue, 16 Feb 2010 07:32:03 +0000
Subject: svn: /phpdoc/en/trunk/reference/filesystem/functions/ fwrite.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6070@lists.php.net to get a copy of this message
kalle Tue, 16 Feb 2010 07:32:03 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295141 Log: Fixed bug #51006 (bug in fwrite section of the manual) Bug: http://bugs.php.net/51006 (Open) bug in fwrite section of the manual Changed paths: U phpdoc/en/trunk/reference/filesystem/functions/fwrite.xml Modified: phpdoc/en/trunk/reference/filesystem/functions/fwrite.xml =================================================================== --- phpdoc/en/trunk/reference/filesystem/functions/fwrite.xml 2010-02-16 07:27:55 UTC (rev 295140) +++ phpdoc/en/trunk/reference/filesystem/functions/fwrite.xml 2010-02-16 07:32:03 UTC (rev 295141) @@ -81,8 +81,8 @@ function fwrite_stream($fp, $string) { for ($written = 0; $written < strlen($string); $written += $fwrite) { $fwrite = fwrite($fp, substr($string, $written)); - if (!$fwrite) { - return $fwrite; + if ($fwrite === false) { + return $written; } } return $written;

« previous php.doc.cvs (#6070) next »