Arquivos
hhvm/hphp/test/quick/guards1.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

38 linhas
602 B
PHP

<?php
class C {}
function foo($x, $y) {
echo "$x $y\n";
}
foo(1, 1);
foo(1, 2.1);
foo(1, true);
foo(1, array(1));
foo(2.1, 1);
foo(2.1, 2.1);
foo(2.1, true);
foo(2.1, array(1));
foo(true, 1);
foo(true, 2.1);
foo(true, true);
foo(true, array(1));
foo(array(1), 1);
foo(array(1), 2.1);
foo(array(1), true);
foo(array(1), array(1));
/* $arr = array(1 => 2, 2 => true, 3 => $uninit, 4 => "string", 5 => array(1), 6 => 6.6,
"1" => 2, "2" => true, "3" => $uninit, "4" => "string", "5" => array(1), "6" => 6.6);
foreach ($arr as $k => $v) {
echo "$k => $v\n";
}
}
foo();
*/