1e94262
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST-- Bug #34065 (throw in foreach causes memory leaks) --FILE-- <?php $data = file(__FILE__); try { foreach ($data as $line) { throw new Exception("error"); } } catch (Exception $e) { echo "ok\n"; } ?> --EXPECT-- ok