503f75d08b
These names don't make sense now that we run both suites the same way.
31 linhas
348 B
PHP
31 linhas
348 B
PHP
<?php
|
|
|
|
class C {
|
|
|
|
public function bluh() {
|
|
global $x;
|
|
$x = null;
|
|
}
|
|
|
|
public function __destruct() {
|
|
print "In C::__destruct()\n";
|
|
}
|
|
}
|
|
|
|
function foo() {
|
|
$c = new C;
|
|
}
|
|
|
|
function main() {
|
|
print "Test begin\n";
|
|
|
|
foo();
|
|
|
|
// Tricky case: $this is the last reference
|
|
$x = new C;
|
|
$x->bluh();
|
|
|
|
print "Test end\n";
|
|
}
|
|
main();
|