|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-04-22 14:40 UTC] robertdesarbo at gmail dot com
-Status: Open
+Status: Closed
[2016-04-22 14:40 UTC] robertdesarbo at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 11:00:02 2025 UTC |
Description: ------------ If you pass a variable as a reference to a function and use that variable in a switch then the variable will not update outside the function. This worked in 7.0.4 but is not working in 7.0.5. Test script: --------------- $var = 'WHAT_IS_THIS'; class BROKEN_VARIABLE_REF { public function __construct() {} public function do_it( &$data ) { switch($data) { case 'WHAT_IS_THIS': $data = "I_WORK"; break; default: $retFlag = false; break; } } }