summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/array_map_001.phpt
blob: c5d78c257e8030f7941e2a900ddf06bd842ee56e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
array_map() and exceptions in the callback
--FILE--
<?php

$a = array(1,2,3);

function foo() {
	throw new exception(1);
}

try {
	array_map("foo", $a, array(2,3));
} catch (Exception $e) {
	var_dump("exception caught!");
}

echo "Done\n";
?>
--EXPECT--
string(17) "exception caught!"
Done