Arquivos
hhvm/hphp/test/vm/pseudomain1.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

23 linhas
298 B
PHP

<?php
class C {
public function __destruct() {
echo "C::__destruct\n";
global $obj;
var_dump($obj);
echo "==========\n";
$obj = 1;
}
}
class D {
public function __destruct() {
echo "D::__destruct\n";
}
}
$obj = new C;
$obj = new D;
echo "****\n";
var_dump($obj);