Basic flow analysis on if statements
[hiphop-php.git] / hphp / test / slow / chr-invalid-type.php
bloba4b0d65bbedf2087cd0e955609602cf89236d6f6
1 <?hh
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'),
16 foreach ($inputs as $v) {
17 var_dump(bin2hex(chr($v)));