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
Handle this typehints
[hiphop-php.git]
/
hphp
/
test
/
slow
/
chr-invalid-type.php
blob
5240631ef4d72bb50e2c3d484fe06ec9726727bd
1
<
?php
2
3
$inputs
= [
4
-
1
,
0
,
1
,
2
,
128
,
255
,
5
"0string"
,
"1string"
,
"2"
,
6
[], [
1
], [
1
,
2
],
7
new
stdClass
,
8
new
SimpleXMLElement
(
"<foo />"
),
9
new
SimpleXMLElement
(
"<foo><bar/></foo>"
),
10
STDIN
,
STDOUT
,
STDERR
,
11
];
12
13
foreach
(
$inputs
as
$v
) {
14
var_dump
(
bin2hex
(
chr
(
$v
)));
15
}