1--TEST--
2Exception inside a foreach loop with return
3--FILE--
4<?php
5class saboteurTestController {
6    public function isConsistent() { throw new \Exception(); }
7}
8
9$controllers = array(new saboteurTestController(),new saboteurTestController());
10foreach ($controllers as $controller) {
11    try {
12        if ($controller->isConsistent()) {
13            return $controller;
14        }
15    } catch (\Exception $e) {
16        echo "Exception\n";
17    }
18}
19?>
20--EXPECT--
21Exception
22Exception
23