Arquivos
hhvm/hphp/test/quick/static_sprop2.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07: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";