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