summaryrefslogtreecommitdiff
path: root/Zend/tests/objects_028.phpt
blob: 88f21aa846e27f12caceed59b6355f4c0b5b2e28 (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
--TEST--
Testing 'static::' and 'parent::' in calls
--FILE--
<?php

class bar {
    public function __call($a, $b) {
        print "hello\n";
    }
}

class foo extends bar {
    public function __construct() {
        static::bar();
        parent::bar();
    }
}


new foo;

?>
--EXPECT--
hello
hello