Doc #80486 [Com]: Undocumented backward incompatible change between 7.4.8 and 7.4.9
| From: | danack@php.net | Date: | Fri, 04 Dec 2020 19:31:59 +0000 |
| Subject: | Doc #80486 [Com]: Undocumented backward incompatible change between 7.4.8 and 7.4.9 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18201@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80486&edit=1
ID: 80486
Comment by: danack@php.net
Reported by: php4fan at gmail dot com
Summary: Undocumented backward incompatible change between
7.4.8 and 7.4.9
Status: Open
Type: Documentation Problem
Package: Documentation problem
Operating System: all
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Hey Teo,
The migration guide is for migrating between versions that are meant to have changes.
There is also list of bug fixes for each version: https://www.php.net/ChangeLog-7.php#PHP_7_4
but I can't currently see it listed....which is not good.
There should be an entry for it as it is definitely different behaviour, so thanks for reporting it.
Previous Comments:
------------------------------------------------------------------------
[2020-12-04 19:17:06] php4fan at gmail dot com
Description:
------------
---
From manual page: https://php.net/migration74.incompatible
---
Something has changed between 7.4.8 and 7.4.9 that affects passing parameters to a function by
eference.
Leaving aside the fact that such bc-breaking changes shouldn't be introduced between sub-minor
versions (i.e. from x.x.y to x.x.z) to begin with, this change is not documented.
I would expect to find it here:
https://www.php.net/manual/en/migration74.incompatible.php
(given that there is not a section named "migrating from 7.4.8 to 7.4.9)
The script below runs without errors or warnings in all versions <= 7.4.8 (including ancient
ones), and causes fatal errors starting from 7.4.9
See https://3v4l.org/SMK9U
Test script:
---------------
<?php
function test(&$value) {
echo $value;
}
test(intval(3));
Expected result:
----------------
bc-breaking change should be documented
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80486&edit=1