503f75d08b
These names don't make sense now that we run both suites the same way.
23 linhas
332 B
PHP
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();
|