ru_php/Zend/tests/bug60833.phpt

35 lines
538 B
PHP

--TEST--
Bug #60833 (self, parent, static behave inconsistently case-sensitive)
--FILE--
<?php
class A {
static $x = "A";
function testit() {
var_dump(new sELF);
var_dump(new SELF);
}
}
class B extends A {
static $x = "B";
function testit() {
PARENT::testit();
var_dump(new sELF);
var_dump(new PARENT);
var_dump(STATIC::$x);
}
}
$t = new B();
$t->testit();
?>
--EXPECT--
object(A)#2 (0) {
}
object(A)#2 (0) {
}
object(B)#2 (0) {
}
object(A)#2 (0) {
}
string(1) "B"