Arquivos
hhvm/hphp/test/vm/sets-dtor.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
332 B
PHP

<?php
// Test destruction order for SetS.
class d {
static public $x = "asd";
public function __destruct() {
d::$x = "destructor";
}
public static function foo() {
$foo = new d();
d::$x = $foo;
unset($foo);
echo "Foo: ";
echo (d::$x = "main");
echo "\n";
var_dump(d::$x);
}
}
d::foo();