summaryrefslogtreecommitdiff
path: root/Zend/zend_object_handlers.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-03-20 12:58:58 +0100
committerNikita Popov <nikic@php.net>2016-03-20 13:33:17 +0100
commit1f6d27d3d2cf8a5113946a55a297441bb4c70ddf (patch)
treeeb8ff12b858104b9970600ae37e0aac6275aded2 /Zend/zend_object_handlers.c
parent9564998e490092fdefa6630944e38692c75e30de (diff)
downloadphp-git-1f6d27d3d2cf8a5113946a55a297441bb4c70ddf.tar.gz
Fix use of UNDEF instead of NULL in read_dimension
Diffstat (limited to 'Zend/zend_object_handlers.c')
-rw-r--r--Zend/zend_object_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c
index c66f8ad7c3..091a0a0d53 100644
--- a/Zend/zend_object_handlers.c
+++ b/Zend/zend_object_handlers.c
@@ -712,7 +712,7 @@ zval *zend_std_read_dimension(zval *object, zval *offset, int type, zval *rv) /*
if (EXPECTED(instanceof_function_ex(ce, zend_ce_arrayaccess, 1) != 0)) {
if(offset == NULL) {
/* [] construct */
- ZVAL_UNDEF(&tmp);
+ ZVAL_NULL(&tmp);
offset = &tmp;
} else {
SEPARATE_ARG_IF_REF(offset);