summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/count_recursive.phpt
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-01-09 16:03:36 +0000
committerDerick Rethans <derick@php.net>2002-01-09 16:03:36 +0000
commitaee570302f7ec129ec83e675461a9fbd80efb22d (patch)
tree680a36710a8576c59e3d1910e879fed5a6003d5b /ext/standard/tests/array/count_recursive.phpt
parent990c27a23a86182210c0576dfa670d4f41f95279 (diff)
downloadphp-git-aee570302f7ec129ec83e675461a9fbd80efb22d.tar.gz
- Fix bug introduced in earlier patch
Diffstat (limited to 'ext/standard/tests/array/count_recursive.phpt')
-rw-r--r--ext/standard/tests/array/count_recursive.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/standard/tests/array/count_recursive.phpt b/ext/standard/tests/array/count_recursive.phpt
index 6e7d141d81..a6b7ee4afa 100644
--- a/ext/standard/tests/array/count_recursive.phpt
+++ b/ext/standard/tests/array/count_recursive.phpt
@@ -4,6 +4,11 @@ count
--GET--
--FILE--
<?php
+print "Testing NULL...\n";
+$arr = NULL;
+print "COUNT_NORMAL: should be 0, is ".count($arr, COUNT_NORMAL)."\n";
+print "COUNT_RECURSIVE: should be 0, is ".count($arr, COUNT_RECURSIVE)."\n";
+
print "Testing arrays...\n";
$arr = array(1, array(3, 4, array(6, array(8))));
print "COUNT_NORMAL: should be 2, is ".count($arr, COUNT_NORMAL)."\n";
@@ -23,6 +28,9 @@ print "COUNT_NORMAL: should be 1, is ".count("string")."\n";
print "COUNT_NORMAL: should be 2, is ".count(array("a", array("b")))."\n";
?>
--EXPECT--
+Testing NULL...
+COUNT_NORMAL: should be 0, is 0
+COUNT_RECURSIVE: should be 0, is 0
Testing arrays...
COUNT_NORMAL: should be 2, is 2
COUNT_RECURSIVE: should be 8, is 8