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
make `Switch` constructor more precise
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_xml
/
T87354430.php
blob
2a46bb070622af32d5e0751c736f5f39cc90aca7
1
<
?hh
2
3
function
test1
() {
4
$a
=
new
XMLReader
();
5
$a
->
expand
(
new
stdClass
);
6
}
7
8
<<
__EntryPoint
>>
9
function
main
():
void
{
10
$tests
=
vec
[
fun
(
'test1'
)];
11
foreach
(
$tests
as
$t
) {
12
try
{
13
$t
();
14
}
catch
(
Exception
$e
) {
15
echo
$e
->
getMessage
().
"
\n
"
;
16
}
17
}
18
}