xref: /PHP-5.5/Zend/tests/bug67436/bug67436.phpt (revision 1a35c959)
1--TEST--
2bug67436: Autoloader isn't called if user defined error handler is present
3
4--INI--
5error_reporting=-1
6
7--FILE--
8<?php
9
10spl_autoload_register(function($classname) {
11	if (in_array($classname, array('a','b','c'))) {
12		require_once __DIR__ . "/{$classname}.php";
13	}
14});
15
16set_error_handler(function ($errno, $errstr, $errfile, $errline) {
17}, error_reporting());
18
19a::staticTest();
20
21$b = new b();
22$b->test();
23
24--EXPECT--
25b::test()
26a::test(c::TESTCONSTANT)
27