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