Arquivos
hhvm/hphp/test/vm/decrefstack1.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
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.
2013-02-11 02:10:41 -08:00

22 linhas
350 B
PHP

<?php
# test_code_run.cpp:29360
class MyDerivedClass {
public function __construct() {
echo "__construct\n";
}
public function __destruct() {
echo "__destruct\n";
}
public static function callNew() {
echo "before\n";
new self("called via PARENT");
echo "after\n";
}
}
$o= MyDerivedClass::callNew();
echo "Done\n";