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;
}
}
}