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

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();