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.
 
 

41 lines
747 B

--TEST--
Test array_count_values() function : Test all normal parameter variations
--FILE--
<?php
class A
{
static function hello()
{
echo "Hello\n";
}
}
function main()
{
/*
* Test behaviour with parameter variations
*/
echo "*** Testing array_count_values() : parameter variations ***\n";
$ob = new A();
$fp = fopen("array_count_file", "w+");
$arrays = array("bobk" => "bobv", "val", 6 => "val6", $fp, $ob);
var_dump(@array_count_values($arrays));
echo "\n";
echo "Done";
}
?>
--CLEAN--
<?php
unlink("array_count_file");
?>
--EXPECT--
*** Testing array_count_values() : parameter variations ***
array(3) {
["bobv"]=>
int(1)
["val"]=>
int(1)
["val6"]=>
int(1)
}
Done