e30755ddbe
Fixed a few instructions in the HHIR instruction properties table related to instructions that should not be moved or eliminated by dead code elimination. Also made sure codegen can handle essential instructions whose result are not used (i.e., instructions whose destination registers are InvalidReg).
23 linhas
351 B
PHP
23 linhas
351 B
PHP
<?php
|
|
class C {
|
|
private static $cls = 'C';
|
|
public function __construct() {
|
|
var_dump(static::$cls);
|
|
}
|
|
}
|
|
|
|
class D extends C {
|
|
private static $cls = 'D';
|
|
public function __construct() {
|
|
parent::__construct();
|
|
var_dump(static::$cls);
|
|
}
|
|
}
|
|
|
|
echo "Creating C\n";
|
|
$c = new C;
|
|
echo "Creating D\n";
|
|
$d = new D;
|
|
echo "**************\n";
|
|
|