|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-03-29 09:15 UTC] laruence@php.net
[2016-03-29 09:15 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2016-04-02 17:53 UTC] bwoebi@php.net
-PHP Version: 7.0.4
+PHP Version: 7.0.5
-Assigned To:
+Assigned To: bwoebi
[2016-04-07 16:33 UTC] info at nepda dot eu
[2016-07-20 11:32 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 11:00:01 2025 UTC |
Description: ------------ thanks for the ssh access by Spritz, reference is lost after case statement. Test script: --------------- <?php function bug(&$value) { switch ($value) { case "xxxx": $value = true; break; } } function test($arr, &$dummy) { bug($arr["str"]); var_dump($arr); } $array = array("str" => "xxxx"); test($array, $array["str"]); Expected result: ---------------- true Actual result: -------------- string(4) "xxxx"