summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
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/array.c
parent7c6acc2eefcaf1b3fd03b1730db84f1f58fffec6 (diff)
downloadphp-git-c70f92caf81fe84ac8e58e27a695b1622805bfcc.tar.gz
Promote warning to error in array_chunk()
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index b99d3222dc..678f32708c 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -6356,7 +6356,7 @@ PHP_FUNCTION(array_chunk)
/* Do bounds checking for size parameter. */
if (size < 1) {
- php_error_docref(NULL, E_WARNING, "Size parameter expected to be greater than 0");
+ zend_throw_error(NULL, "Size parameter expected to be greater than 0");
return;
}