Bug #71964 [Opn->Csd]: Pass by reference variable modification fails under certain circumstance

From: Date: Tue, 05 Apr 2016 11:07:37 +0000
Subject: Bug #71964 [Opn->Csd]: Pass by reference variable modification fails under certain circumstance
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200370@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71964&edit=1 ID: 71964 Updated by: laruence@php.net Reported by: ben dot davies at gmail dot com Summary: Pass by reference variable modification fails under certain circumstance -Status: Open +Status: Closed Type: Bug Package: Variables related Operating System: N/A PHP Version: 7.0.5 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N New Comment: this has been fixed in #71914 Previous Comments: ------------------------------------------------------------------------ [2016-04-05 09:27:26] ben dot davies at gmail dot com Description: ------------ It appears that assigning variables passed by reference does not work under specific circumstances. For example in the test script, removing the switch statement in the bug function does not trigger the bug. Having a look around recent bug fixes, this is possibly a regression introduced by https://bugs.php.net/bug.php?id=71756. The test script only fails on php 7.0.5 Test script: --------------- https://3v4l.org/KB4sC Expected result: ---------------- string Actual result: -------------- @string@ ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71964&edit=1

« previous php.bugs (#200370) next »