repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
import zend standard tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
bad
/
ext-standard-array
/
bug35821.php
blob
5f427042ba673e8c472964c3b61a1f6c1a8aea95
1
<
?php
2
3
class
Element
4
{
5
public function
ThrowException
()
6
{
7
throw new
Exception
();
8
}
9
10
public static function
CallBack
(
Element
$elem
)
11
{
12
$elem
->
ThrowException
();
13
}
14
}
15
16
$arr
=
array
(
new
Element
(),
new
Element
(),
new
Element
());
17
array_map
(
array
(
'Element'
,
'CallBack'
),
$arr
);
18
19
echo
"Done
\n
"
;
20
?
>