xref: /PHP-7.1/Zend/tests/catch.phpt (revision 610c7fbe)
1--TEST--
2catch shouldn't call __autoload
3--FILE--
4<?php
5function __autoload($name) {
6	echo("AUTOLOAD '$name'\n");
7	eval("class $name {}");
8}
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