|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
32 - 13 = ?
Subscribe to this entry?

 [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 01:05:44 2022 UTC