|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79607 Wrong return type
Submitted: 2020-05-16 20:54 UTC Modified: 2020-05-17 10:59 UTC
From: haeckel at dc-solution dot de Assigned: cmb (profile)
Status: Closed Package: SPL related
PHP Version: 7.4.6 OS: Windows 10 Pro
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: haeckel at dc-solution dot de
New email:
PHP Version: OS:


 [2020-05-16 20:54 UTC] haeckel at dc-solution dot de
From manual page:

Documentation states method returns 0 on error, returns false instead.

using production ini with ext: mbstring and ext:openssl enabled

Test script:
$file = new SplFileObject(__FILE__);
$exitCode = $file->fwrite('Hallo');

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-05-16 22:29 UTC]
-Status: Open +Status: Verified -Package: Filesystem function related +Package: SPL related
 [2020-05-17 10:59 UTC]
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2020-05-17 10:59 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Fixed with <>.
 [2020-05-17 11:00 UTC]
Automatic comment on behalf of cmb
Log: Fix #79607: Wrong return type
 [2020-05-18 04:40 UTC]
Automatic comment on behalf of mumumu
Log: Fix #79607: Wrong return type
 [2020-12-30 11:59 UTC]
Automatic comment on behalf of mumumu
Log: Fix #79607: Wrong return type
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 15 00:05:45 2022 UTC