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

From: Date: Sat, 16 May 2020 22:29:45 +0000
Subject: Doc #79607 [Opn->Ver]: Wrong return type
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17581@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: Open +Status: Verified Type: Documentation Problem -Package: Filesystem function related +Package: SPL related Operating System: Windows 10 Pro PHP Version: 7.4.6 Block user comment: N Private report: N 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 (#17581) next »