summaryrefslogtreecommitdiff
path: root/Zend/zend_execute.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-09-26 16:05:24 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-09-27 13:00:07 +0200
commitf2b09969db675adf7fa767378deb894c9bf029e0 (patch)
tree9c2682f82629213987f129d5475e53eeaa98cbd1 /Zend/zend_execute.c
parent36eecc107670d4d083b0745544b57915716d13c8 (diff)
downloadphp-git-f2b09969db675adf7fa767378deb894c9bf029e0.tar.gz
Convert "cannot add element" warning to exception
Diffstat (limited to 'Zend/zend_execute.c')
-rw-r--r--Zend/zend_execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index cc3db98d63..f8f2527256 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -1892,7 +1892,7 @@ static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_use_scalar_as_array(v
static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_cannot_add_element(void)
{
- zend_error(E_WARNING, "Cannot add element to the array as the next element is already occupied");
+ zend_throw_error(NULL, "Cannot add element to the array as the next element is already occupied");
}
static zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_use_resource_as_offset(const zval *dim)