xref: /PHP-5.3/Zend/tests/dynamic_call_001.phpt (revision e4c76641)
1--TEST--
2Testing dynamic call to constructor (old-style)
3--FILE--
4<?php
5
6class foo {
7	public function foo() {
8	}
9}
10
11$a = 'foo';
12
13$a::$a();
14
15?>
16--EXPECTF--
17Fatal error: Non-static method foo::foo() cannot be called statically in %s on line %d
18