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
Basic flow analysis on if statements
[hiphop-php.git]
/
hphp
/
test
/
slow
/
chr-invalid-type.php
blob
a4b0d65bbedf2087cd0e955609602cf89236d6f6
1
<
?hh
2
3
4
<<
__EntryPoint
>>
5
function
main_chr_invalid_type
() {
6
$inputs
=
varray
[
7
-
1
,
0
,
1
,
2
,
128
,
255
,
8
"0string"
,
"1string"
,
"2"
,
9
varray
[],
varray
[
1
],
varray
[
1
,
2
],
10
new
stdClass
,
11
new
SimpleXMLElement
(
"<foo />"
),
12
new
SimpleXMLElement
(
"<foo><bar/></foo>"
),
13
fopen
(
__FILE__
,
'r'
),
14
];
15
16
foreach
(
$inputs
as
$v
) {
17
var_dump
(
bin2hex
(
chr
(
$v
)));
18
}
19
}