Doc #79965 [NEW]: Why does the manual say fread/fwrite changed in PHP 7.4?

From: Date: Wed, 12 Aug 2020 17:03:19 +0000
Subject: Doc #79965 [NEW]: Why does the manual say fread/fwrite changed in PHP 7.4?
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17767@lists.php.net to get a copy of this message
From:             thiemo dot kreuz at wikimedia dot de
Operating system: 
PHP version:      7.4.9
Package:          *Directory/Filesystem functions
Bug Type:         Documentation Problem
Bug description:Why does the manual say fread/fwrite changed in PHP 7.4?

Description:
------------
---
From manual page: https://php.net/migration74.incompatible
---

Quote: "fread() and fwrite() will now return FALSE if the operation
failed. Previously an empty string or 0 was returned."

This is not correct, or at least misleading. Both functions are
documented to return false in case of a failure ever since. What changed
in PHP 7.4? I tried to find the related code change, but all I found are
bugfixes. Does this section refer to a bugfix? Maybe there was a very
specific failure situation that was not reported via false?

TL;DR: Please re-write or remove this misleading section from the
migration manual.

https://www.php.net/manual/en/migration74.incompatible.php#migration74.incompatible.core.fread-fwrite


-- 
Edit bug report at https://bugs.php.net/bug.php?id=79965&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79965&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79965&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79965&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79965&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79965&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79965&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79965&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79965&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79965&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79965&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79965&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79965&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79965&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79965&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79965&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79965&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79965&r=mysqlcfg


Thread (6 messages)

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