mirror of
https://github.com/php/php-src.git
synced 2026-04-03 14:12:38 +02:00
Merge branch 'PHP-7.0'
* PHP-7.0: Update tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user