summaryrefslogtreecommitdiff
path: root/Zend/zend_execute.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-08-02 19:08:39 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-08-02 19:08:39 +0200
commit9e246a73ef465f622050f8a166d35c5431df3bdd (patch)
tree84bf3907978d3cbd25b600e3e7f83b18d41dd9dc /Zend/zend_execute.c
parenta7587135e3fad208b013319677320355a870ffe8 (diff)
downloadphp-git-9e246a73ef465f622050f8a166d35c5431df3bdd.tar.gz
Fixed bug #70182 (Segfault in ZEND_ASSIGN_OP handlers)
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 065809f1a6..3009ddfcff 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -1687,7 +1687,7 @@ convert_to_array:
if (dim == NULL) {
zend_throw_error(NULL, "[] operator not supported for strings");
- ZVAL_NULL(result);
+ ZVAL_INDIRECT(result, &EG(error_zval));
} else {
zend_check_string_offset(dim, type);
ZVAL_INDIRECT(result, NULL); /* wrong string offset */