Arquivos
hhvm/hphp/test/quick/array_tuple.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

15 linhas
422 B
PHP

<?php
function test($x) {
// each of these should "just work" but stresses NewTuple logic.
$a = array($x, 1, 2); var_dump($a);
$a = array($x,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1); var_dump($a);
$a = array(0,$x,0,0,0,0,0,8); var_dump($a);
$a = array(0,$x,0,0,0,0,0,0,0,0,11); var_dump($a);
$a = array(0,$x,0,0,0,0,0,0,0,0,0,12); var_dump($a);
$a = array(1,1,$x,"a"=>$x); var_dump($a);
}
test(42);