summaryrefslogtreecommitdiff
path: root/Zend/tests/bug51176.phpt
blob: c5185cc5fa6172894709316779f0a35c17ca4c84 (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
--TEST--
Bug #51176 (Static calling in non-static method behaves like $this->)
--FILE--
<?php
class Foo
{
	public function start()
	{
		self::bar();
		static::bar();
		Foo::bar();
	}

	public function __call($n, $a)
	{
		echo "instance\n";
	}

	public static function __callStatic($n, $a)
	{
		echo "static\n";
	}
}

$foo = new Foo();
$foo->start();

?>
--EXPECT--
instance
instance
instance