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--EXPECTF-- 21Warning: array_map(): An error occurred while invoking the map callback in %s on line %d 22string(17) "exception caught!" 23Done 24