xref: /PHP-8.3/Zend/tests/bug60833.phpt (revision 902d6439)
1--TEST--
2Bug #60833 (self, parent, static behave inconsistently case-sensitive)
3--FILE--
4<?php
5class A {
6    static $x = "A";
7    function testit() {
8        var_dump(new sELF);
9        var_dump(new SELF);
10    }
11}
12
13class B extends A {
14    static $x = "B";
15    function testit() {
16        PARENT::testit();
17        var_dump(new sELF);
18        var_dump(new PARENT);
19        var_dump(STATIC::$x);
20    }
21}
22$t = new B();
23$t->testit();
24?>
25--EXPECT--
26object(A)#2 (0) {
27}
28object(A)#2 (0) {
29}
30object(B)#2 (0) {
31}
32object(A)#2 (0) {
33}
34string(1) "B"
35