xref: /PHP-5.5/Zend/tests/bug65322.phpt (revision f0c92656)
1--TEST--
2Bug #65322: compile time errors won't trigger auto loading
3--FILE--
4<?php
5
6spl_autoload_register(function($class) {
7    var_dump($class);
8    class B {}
9});
10
11set_error_handler(function($_, $msg, $file) {
12    var_dump($msg, $file);
13    new B;
14});
15
16eval('class A { function a() {} function __construct() {} }');
17
18?>
19--EXPECTF--
20string(50) "Redefining already defined constructor for class A"
21string(%d) "%s(%d) : eval()'d code"
22string(1) "B"
23