1--TEST-- 2bug67436: Autoloader isn't called if user defined error handler is present 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 14set_error_handler(function ($errno, $errstr, $errfile, $errline) { 15}, error_reporting()); 16 17a::staticTest(); 18 19$b = new b(); 20$b->test(); 21--EXPECT-- 22b::test() 23a::test(c::TESTCONSTANT) 24