summaryrefslogtreecommitdiff
path: root/Zend/tests/dynamic_call_001.phpt
blob: 94e4203caff6bb3b9572d4a1c0309610e0e60a23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Testing dynamic call to constructor (old-style)
--FILE--
<?php 

class foo { 
	public function foo() {
	}	
}

$a = 'foo';

$a::$a();

?>
--EXPECTF--
Fatal error: Non-static method foo::foo() cannot be called statically in %s on line %d