summaryrefslogtreecommitdiff
path: root/Zend/tests/bug51176.phpt
blob: 272ba1286f768b1ed7e3126702759a0cebaa2b0c (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