[php-src] PR #23268: Fix GH-17773: Array element initialised by reference returned from a function
| From: | matthiasgoergens | Date: | Fri, 14 Aug 2026 04:11:31 +0000 |
| Subject: | [php-src] PR #23268: Fix GH-17773: Array element initialised by reference returned from a function | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37845@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23268
Author: matthiasgoergens
Initialising an array element with a reference returned by a function, e.g.
[&foo()], is rejected at compile time although ordinary reference assignment
accepts it. Allow user-function call results in this source position while
keeping the remaining source-side safeguards of reference assignment.