summaryrefslogtreecommitdiff
path: root/Zend/tests/bug34065.phpt
blob: 9d76fca6436b8384292764549dcfd94c67307980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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