blob: 5a1025cfa74cdb8fca1cca597bce3904222c856d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--TEST--
Testing dynamic call to constructor (old-style)
--FILE--
<?php
class foo {
public function foo() {
}
}
$a = 'foo';
$a::$a();
?>
--EXPECTF--
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; foo has a deprecated constructor in %s on line %d
Fatal error: Uncaught exception 'EngineException' with message 'Non-static method foo::foo() cannot be called statically' in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
|