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

27 linhas
432 B
PHP

<?php
print "Test begin\n";
$x = null;
class C {
public $p = "C::\$p";
function __destruct() {
global $x;
print "In C::__destruct()\n";
$this->p = "changed";
$x = $this;
}
}
$c = new C();
var_dump($c);
$c = null;
# XXX The translator fails to notice that $x has changed, so break the basic
# block here to force the translator to re-read $x.
if (isset($g)) {}
var_dump($x);
$x = null;
print "Test end\n";