blob: 5394177064d3a557c67d00aba6ca1de5c92111ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
bug67436: E_WARNING instead of custom error handler
--FILE--
<?php
spl_autoload_register(function($classname) {
if (in_array($classname, array('a','b','c'))) {
require_once __DIR__ . "/{$classname}.inc";
}
});
a::staticTest();
$b = new b();
$b->test();
--EXPECTF--
Warning: The magic method __invoke() must have public visibility and cannot be static in %s on line %d
b::test()
a::test(c::TESTCONSTANT)
|