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.
22 linhas
350 B
PHP
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";
|