1--TEST--
2Test array_count_values() function : Test all normal parameter variations
3--FILE--
4<?php
5/*
6 * Test behaviour with parameter variations
7 */
8
9echo "*** Testing array_count_values() : parameter variations ***\n";
10
11class A {
12    static function hello() {
13      echo "Hello\n";
14    }
15}
16
17$ob = new A();
18
19$fp = fopen("array_count_file", "w+");
20
21$arrays = array ("bobk" => "bobv", "val", 6 => "val6",  $fp, $ob);
22
23var_dump (@array_count_values ($arrays));
24echo "\n";
25
26
27echo "Done";
28?>
29--CLEAN--
30<?php
31unlink("array_count_file");
32?>
33--EXPECT--
34*** Testing array_count_values() : parameter variations ***
35array(3) {
36  ["bobv"]=>
37  int(1)
38  ["val"]=>
39  int(1)
40  ["val6"]=>
41  int(1)
42}
43
44Done
45