Arquivos
hhvm/hphp/test/quick/vector-variant-key.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

21 linhas
333 B
PHP

<?php
class asshat {
private $prop;
public function __construct(&$v) {
$this->prop =& $v;
}
public function __get($k) {
$this->prop = 'foo';
return array('foo' => 'gotcha', 1 => 'whoops');
}
}
function main($cond) {
$x = 1;
$o = new asshat($x);
if ($cond) {
var_dump($o->blah[$x]);
}
}
main(true);