repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updates to Tomato RAF including NGINX && PHP
[tomato.git]
/
release
/
src
/
router
/
php
/
ext
/
spl
/
tests
/
spl_iterator_apply_error_001.phpt
blob
54663c0da889dd6b18b435538217b02377958e03
1
--TEST--
2
SPL: Error: iterator_apply when the callback throws an exception
3
--FILE--
4
<?php
5
6
function test() {
7
throw new Exception('Broken callback');
8
}
9
10
$it = new RecursiveArrayIterator(array(1, 21, 22));
11
12
try {
13
iterator_apply($it, 'test');
14
} catch (Exception $e) {
15
echo $e->getMessage();
16
}
17
18
?>
19
--EXPECT--
20
Broken callback