From 256593abcf0452d2a95cc1869baeeaea0d72d2a7 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Tue, 29 Mar 2016 17:52:58 +0800 Subject: [PATCH] Update tests --- Zend/tests/bug71914.phpt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Zend/tests/bug71914.phpt b/Zend/tests/bug71914.phpt index 8f825f89ec..a43eb56bbd 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) -- 2.50.1