summaryrefslogtreecommitdiff
path: root/Zend/tests/bug60833.phpt
blob: 19cd2a4e53a26d149d9722becb6bd6fe07e99960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--TEST--
Bug #60833 (self, parent, static behave inconsistently case-sensitive)
--FILE--
<?php
class A {
    static $x = "A";
    function testit() {
        $this->v1 = new sELF;
        $this->v2 = new SELF;
    }
}

class B extends A {
    static $x = "B";
    function testit() {
        PARENT::testit();
        $this->v3 = new sELF;
        $this->v4 = new PARENT;
        $this->v4 = STATIC::$x;
    }
}
$t = new B();
$t->testit();
var_dump($t);
?>
--EXPECTF--
object(B)#%d (4) {
  ["v1"]=>
  object(A)#%d (0) {
  }
  ["v2"]=>
  object(A)#%d (0) {
  }
  ["v3"]=>
  object(B)#%d (0) {
  }
  ["v4"]=>
  string(1) "B"
}