eca135cb31
Sadly I can't get TestDebugger, TestServer, TestExt, QuickTests, or TestPerformance as they are all unsuported by verify. Someday.
21 linhas
324 B
PHP
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";
|