xref: /PHP-8.1/Zend/tests/catch.phpt (revision f8d79582)
1--TEST--
2catch shouldn't call autoloader
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