Arquivos
hhvm/hphp/test/quick/BindS_ref.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

16 linhas
184 B
PHP

<?php
class Foo {
public static $x;
function f() {
$x = array();
Foo::$x =& $x;
Foo::$x[0] = 12;
echo $x[0] . "\n";
}
}
$y = new Foo();
$y->f();
echo "done\n";