Arquivos
hhvm/hphp/test/vm/exceptions3.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

22 linhas
344 B
PHP

<?php
function newobj() {
return new C;
}
class C {
public function __destruct() {
echo "C::__destruct\n";
}
public function g($x, $y, $z) {
return $y;
}
public function foo($z) {
$w2 = 2;
newobj()->g(newobj(), 7, 8, $w2 = $this->foo(newobj()));
}
}
function bar() {
$obj = new C;
newobj()->foo(123);
}
bar();