php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #20318 Wrong return value for the fwrite() doc. PHP-NOTE #26679
Submitted: 2002-11-08 13:31 UTC Modified: 2002-11-08 13:44 UTC
From: maxim@php.net Assigned: maxim (profile)
Status: Closed Package: Documentation problem
PHP Version: 4CVS-2002-11-08 OS:
Private report: No CVE-ID: None
 [2002-11-08 13:31 UTC] maxim@php.net
PHP Note #26679 reports a -1 return on error while in CVS it obviousely sends FALSE. Although this is common, it still is pretty confusing and misleads the documentation consistency.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-08 13:32 UTC] maxim@php.net
I'll take over it
 [2002-11-08 13:44 UTC] maxim@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

done. Needed a reminder - you never know :)
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of maxim
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=1e4d2a5319200ad635128cf930e335dc28df7d6e
Log: Fixed Bug #20318 - confusing return value (False instead -1)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Nov 22 11:00:01 2025 UTC