summaryrefslogtreecommitdiff
path: root/Zend/tests/objects_028.phpt
blob: 5c76612938fe29772d3c40554f089462bf4cd5d5 (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