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

35 linhas
442 B
PHP

<?php
function baz(&$x) {
var_dump($x);
}
class A {
private $x;
private $z;
function foo() {
$this->x = $this;
}
function bar() {
$y = $this->x->x->x->x->x;
baz($y);
$y = $this->x->x->x->x->x;
baz($y);
baz($this->z);
}
public function what() {
$this->foo();
$this->bar();
unset($this->x->x);
$this->bar();
}
}
function foo() {
$x = new A();
$x->what();
$x->what();
}
foo();