Arquivos
hhvm/hphp/test/quick/decrefstack1.php
T
Paul Tarjan eca135cb31 delete most PHP in C++
Sadly I can't get TestDebugger, TestServer, TestExt, QuickTests, or TestPerformance as they are all unsuported by verify. Someday.
2013-04-22 14:43:51 -07:00

21 linhas
324 B
PHP

<?php
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";