Arquivos
hhvm/hphp/test/quick/CGetMVar.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

27 linhas
343 B
PHP

<?
class V { const X = 10; }
function &values() {
static $VALUES = array(
'X' => V::X,
);
return $VALUES;
}
function foo() { var_dump(values()['X']); }
foo();
foo();
class T {
public $var;
function f() {
echo $this->var - 3;
}
}
$a = 33;
$t = new T();
$t->var = &$a;
$t->f();
$a = 10000;
$t->f();