363d1bb20f
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.
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();
|