diff --git a/Zend/tests/bug71914.phpt b/Zend/tests/bug71914.phpt index 8f825f89ece..a43eb56bbd6 100644 --- a/Zend/tests/bug71914.phpt +++ b/Zend/tests/bug71914.phpt @@ -11,15 +11,30 @@ function bug(&$value) { } } +function returnArray() { + $array = array(); + $array["str"] = "xxxx"; + return $array; +} + +class Foo { + public $array = array("str" => "xxxx"); +} function test($arr, &$dummy) { bug($arr["str"]); var_dump($arr["str"]); } +$foo = new Foo(); +$arr = returnArray(); $array = array("str" => "xxxx"); test($array, $array["str"]); +test($arr, $arr["str"]); +test($foo->array, $foo->array["str"]); ?> --EXPECT-- bool(true) +bool(true) +bool(true)