Doc #79607 [Ver->Csd]: Wrong return type

From: Date: Sun, 17 May 2020 10:59:24 +0000
Subject: Doc #79607 [Ver->Csd]: Wrong return type
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17586@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79607&edit=1 ID: 79607 Updated by: cmb@php.net Reported by: haeckel at dc-solution dot de Summary: Wrong return type -Status: Verified +Status: Closed Type: Documentation Problem Package: SPL related Operating System: Windows 10 Pro PHP Version: 7.4.6 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: 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 <http://svn.php.net/viewvc?view=revision&revision=349901>. Previous Comments: ------------------------------------------------------------------------ [2020-05-16 20:54:15] haeckel at dc-solution dot de Description: ------------ --- From manual page: https://php.net/splfileobject.fwrite --- Documentation states method returns 0 on error, returns false instead. using production ini with ext: mbstring and ext:openssl enabled Test script: --------------- <?php $file = new SplFileObject(__FILE__); $exitCode = $file->fwrite('Hallo'); var_dump($exitCode); Expected result: ---------------- int(0) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79607&edit=1

« previous php.doc.bugs (#17586) next »