TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
417 B
31 lines
417 B
--TEST--
|
|
Force pass-by-reference to __call (Incompatible)
|
|
--FILE--
|
|
<?php
|
|
class C
|
|
{
|
|
function __call($name, $values)
|
|
{
|
|
$values[0][0] = 'changed';
|
|
}
|
|
}
|
|
function main() {
|
|
$a = array('original');
|
|
$b = array('original');
|
|
|
|
$c = new C;
|
|
$c->f($a);
|
|
$c->f($b);
|
|
|
|
var_dump($a, $b);
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
array(1) {
|
|
[0]=>
|
|
string(8) "original"
|
|
}
|
|
array(1) {
|
|
[0]=>
|
|
string(8) "original"
|
|
}
|