xref: /PHP-7.2/Zend/tests/try/bug74444.phpt (revision f1d7e3ca)
1--TEST--
2Bug #74444 (multiple catch freezes in some cases)
3--FILE--
4<?php
5function foo()
6{
7	echo '';
8	echo '';
9	echo '';
10	echo '';
11	echo '';
12	echo '';
13	echo '';
14	echo '';
15	echo '';
16	echo '';
17	echo '';
18	echo '';
19	echo '';
20	echo '';
21	echo '';
22	echo '';
23	echo '';
24	echo '';
25	echo '';
26	echo '';
27	echo '';
28	echo '';
29	echo '';
30	echo '';
31	echo '';
32	echo '';
33	echo '';
34	echo '';
35	echo '';
36	echo '';
37	echo '';
38	echo '';
39	echo '';
40	echo '';
41	echo '';
42	echo '';
43	echo '';
44	echo '';
45	echo '';
46	echo '';
47	echo '';
48	echo '';
49	echo '';
50	echo '';
51	echo '';
52	echo '';
53	echo '';
54	echo '';
55	echo '';
56	echo '';
57	echo '';
58	echo '';
59	echo '';
60	echo '';
61	echo '';
62	echo '';
63	echo '';
64	echo '';
65	echo '';
66	try {
67		throw new \RuntimeException();
68	} catch (\FooEx  | \RuntimeException $e) {
69		echo 1;
70	}
71	echo 2;
72}
73
74foo();
75--EXPECT--
7612
77