print "Testing various types with no second argument.\n";
print "COUNT_NORMAL: should be 1, is ".count("string")."\n";
print "COUNT_NORMAL: should be 2, is ".count(array("a", array("b")))."\n";
+
+$arr = array('a'=>array(NULL, NULL, NULL), 1=>array(NULL=>1, 1=>NULL),
+ array(array(array(array(array(NULL))))));
+print "Testing really cool arrays ;)\n";
+print "COUNT_NORMAL: should be 3, is ".count($arr, COUNT_NORMAL)."\n";
+print "COUNT_RECURSIVE: should be 13, is ".count($arr, COUNT_RECURSIVE)."\n";
?>
--EXPECT--
Testing NULL...
COUNT_RECURSIVE: should be 1, is 1
Testing various types with no second argument.
COUNT_NORMAL: should be 1, is 1
-COUNT_NORMAL: should be 2, is 2
+COUNT_NORMAL: should be 2, is 2
+Testing really cool arrays ;)
+COUNT_NORMAL: should be 3, is 3
+COUNT_RECURSIVE: should be 13, is 13
1.0 === pow( 2.0, 0)
2.0 === pow( 2.0, 1)
4.0 === pow( 2.0, 2)
+ 2.0 === pow( 4, 0.5)
+ 2.0 === pow( 4.0, 0.5)
+ 3.0 === pow( 27, 1/3)
+ 3.0 === pow(27.0, 1/3)
+ 0.5 === pow( 4, -0.5)
+ 0.5 === pow( 4.0, -0.5)
LONG_MAX-1 === pow(LONG_MAX-1,1)
LONG_MIN+1 === pow(LONG_MIN+1,1)
(LONG_MAX-1)*(LONG_MAX-1) ~== pow(LONG_MAX-1,2)