Doc #79607 [NEW]: Wrong return type
| From: | haeckel at dc-solution dot de | Date: | Sat, 16 May 2020 20:54:16 +0000 |
| Subject: | Doc #79607 [NEW]: Wrong return type | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-17580@lists.php.net to get a copy of this message | ||
From: haeckel at dc-solution dot de
Operating system: Windows 10 Pro
PHP version: 7.4.6
Package: Filesystem function related
Bug Type: Documentation Problem
Bug description:Wrong return type
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 bug report at https://bugs.php.net/bug.php?id=79607&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79607&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79607&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79607&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79607&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79607&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79607&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79607&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79607&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79607&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79607&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79607&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79607&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79607&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79607&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79607&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79607&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79607&r=mysqlcfg