1--TEST--
2Test array_count_values() function : Test all normal parameter variations
3--FILE--
4<?php
5/* Prototype  : proto array array_count_values(array input)
6 * Description: Return the value as key and the frequency of that value in input as value
7 * Source code: ext/standard/array.c
8 * Alias to functions:
9 */
10
11/*
12 * Test behaviour with parameter variations
13 */
14
15echo "*** Testing array_count_values() : parameter variations ***\n";
16
17class A {
18	static function hello() {
19	  echo "Hello\n";
20	}
21}
22
23$ob = new A();
24
25$fp = fopen("array_count_file", "w+");
26
27$arrays = array ("bobk" => "bobv", "val", 6 => "val6",  $fp, $ob);
28
29var_dump (@array_count_values ($arrays));
30echo "\n";
31
32
33echo "Done";
34?>
35--CLEAN--
36<?php
37unlink("array_count_file");
38?>
39--EXPECT--
40*** Testing array_count_values() : parameter variations ***
41array(3) {
42  ["bobv"]=>
43  int(1)
44  ["val"]=>
45  int(1)
46  ["val6"]=>
47  int(1)
48}
49
50Done
51