xref: /PHP-7.3/Zend/tests/catch.phpt (revision 162aa1a5)
1--TEST--
2catch shouldn't call __autoload
3--FILE--
4<?php
5
6spl_autoload_register(function ($name) {
7	echo("AUTOLOAD '$name'\n");
8	eval("class $name {}");
9});
10
11try {
12} catch (A $e) {
13}
14
15try {
16  throw new Exception();
17} catch (B $e) {
18} catch (Exception $e) {
19	echo "ok\n";
20}
21?>
22--EXPECT--
23ok
24