Arquivos
hhvm/hphp/test/vm/static_sprop2.php
T
alia e30755ddbe HHIR: Fixed potential problems with essential instructions
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).
2013-03-05 21:17:51 -08:00

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