TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
656 B

--TEST--
Test array_fill_keys() function : variation of parameter
--FILE--
<?php
/* Testing with unexpected argument types */
echo "*** Testing array_fill_keys() : parameter variations ***\n";
$fp = fopen(__FILE__, "r");
$array = array("one", "two");
echo "\n-- Testing array_fill_keys() function with unusual second arguments --\n";
var_dump( array_fill_keys($array, $fp) );
fclose($fp);
echo "Done";
?>
--EXPECTF--
*** Testing array_fill_keys() : parameter variations ***
-- Testing array_fill_keys() function with unusual second arguments --
array(2) {
["one"]=>
resource(%d) of type (stream)
["two"]=>
resource(%d) of type (stream)
}
Done