@@ -26,6 +26,12 @@ print "COUNT_RECURSIVE: should be 1, is ".count("string", COUNT_RECURSIVE)."\n";
26
26
print "Testing various types with no second argument. \n" ;
27
27
print "COUNT_NORMAL: should be 1, is " .count ("string " )."\n" ;
28
28
print "COUNT_NORMAL: should be 2, is " .count (array ("a " , array ("b " )))."\n" ;
29
+
30
+ $ arr = array ('a ' =>array (NULL , NULL , NULL ), 1 =>array (NULL =>1 , 1 =>NULL ),
31
+ array (array (array (array (array (NULL ))))));
32
+ print "Testing really cool arrays ;) \n" ;
33
+ print "COUNT_NORMAL: should be 3, is " .count ($ arr , COUNT_NORMAL )."\n" ;
34
+ print "COUNT_RECURSIVE: should be 13, is " .count ($ arr , COUNT_RECURSIVE )."\n" ;
29
35
?>
30
36
--EXPECT--
31
37
Testing NULL...
@@ -42,4 +48,7 @@ COUNT_NORMAL: should be 1, is 1
42
48
COUNT_RECURSIVE: should be 1, is 1
43
49
Testing various types with no second argument.
44
50
COUNT_NORMAL: should be 1, is 1
45
- COUNT_NORMAL: should be 2, is 2
51
+ COUNT_NORMAL: should be 2, is 2
52
+ Testing really cool arrays ;)
53
+ COUNT_NORMAL: should be 3, is 3
54
+ COUNT_RECURSIVE: should be 13, is 13
0 commit comments