summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/array_chunk_variation29.phpt
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2019-08-20 23:30:20 +0200
committerGeorge Peter Banyard <girgias@php.net>2019-08-21 18:07:35 +0200
commitc70f92caf81fe84ac8e58e27a695b1622805bfcc (patch)
tree4dac640436e3e8fb6524f1d5b32879fc000b8ea1 /ext/standard/tests/array/array_chunk_variation29.phpt
parent7c6acc2eefcaf1b3fd03b1730db84f1f58fffec6 (diff)
downloadphp-git-c70f92caf81fe84ac8e58e27a695b1622805bfcc.tar.gz
Promote warning to error in array_chunk()
Diffstat (limited to 'ext/standard/tests/array/array_chunk_variation29.phpt')
-rw-r--r--ext/standard/tests/array/array_chunk_variation29.phpt13
1 files changed, 4 insertions, 9 deletions
diff --git a/ext/standard/tests/array/array_chunk_variation29.phpt b/ext/standard/tests/array/array_chunk_variation29.phpt
index 12f50c1190..f18de5ea85 100644
--- a/ext/standard/tests/array/array_chunk_variation29.phpt
+++ b/ext/standard/tests/array/array_chunk_variation29.phpt
@@ -4,11 +4,11 @@ array_chunk() - variation 29
<?php
$array = array (0, 2);
var_dump ($array);
-for ($i = 0; $i < (sizeof($array) + 1); $i++) {
+for ($i = 1; $i < (sizeof($array) + 1); $i++) {
echo "[$i]\n";
- var_dump (@array_chunk ($array, $i));
- var_dump (@array_chunk ($array, $i, TRUE));
- var_dump (@array_chunk ($array, $i, FALSE));
+ var_dump (array_chunk ($array, $i));
+ var_dump (array_chunk ($array, $i, TRUE));
+ var_dump (array_chunk ($array, $i, FALSE));
echo "\n";
}
?>
@@ -19,11 +19,6 @@ array(2) {
[1]=>
int(2)
}
-[0]
-NULL
-NULL
-NULL
-
[1]
array(2) {
[0]=>