1--TEST--
2SPL: Error: iterator_apply when the callback throws an exception
3--FILE--
4<?php
5
6function test() {
7	throw new Exception('Broken callback');
8}
9
10$it = new RecursiveArrayIterator(array(1, 21, 22));
11
12try {
13	iterator_apply($it, 'test');
14} catch (Exception $e) {
15	echo $e->getMessage();
16}
17
18?>
19--EXPECT--
20Broken callback
21