1--TEST--
2array_map() and exceptions in the callback
3--FILE--
4<?php
5
6$a = array(1,2,3);
7
8function foo() {
9	throw new exception(1);
10}
11
12try {
13	array_map("foo", $a, array(2,3));
14} catch (Exception $e) {
15	var_dump("exception caught!");
16}
17
18echo "Done\n";
19?>
20--EXPECT--
21string(17) "exception caught!"
22Done
23