1--TEST-- 2bug67436: E_STRICT instead of custom error handler 3--INI-- 4error_reporting=-1 5--FILE-- 6<?php 7 8spl_autoload_register(function($classname) { 9 if (in_array($classname, array('a','b','c'))) { 10 require_once __DIR__ . "/{$classname}.php"; 11 } 12}); 13 14a::staticTest(); 15 16$b = new b(); 17$b->test(); 18--EXPECTF-- 19Warning: Declaration of b::test() should be compatible with a::test($arg = c::TESTCONSTANT) in %s%ebug67436%eb.php on line %d 20b::test() 21a::test(c::TESTCONSTANT) 22