summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2005-01-11 17:17:48 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2005-01-11 17:17:48 +0000
commit357b0c34b6969f2cbb54a94d5207d328746384a2 (patch)
treee82dadca258831d24f2240f07085686e12e4e306
parent166ca20beddda03d95073d3c308bcf62e9931a94 (diff)
downloadphp-git-357b0c34b6969f2cbb54a94d5207d328746384a2.tar.gz
- Fix bug #31478 (segfault with empty())
-rw-r--r--Zend/zend_compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index faa6c35745..cad9f26fcd 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -3321,6 +3321,7 @@ void zend_do_isset_or_isempty(int type, znode *result, znode *variable TSRMLS_DC
}
}
last_op->result.op_type = IS_TMP_VAR;
+ last_op->result.u.var = get_temporary_variable(CG(active_op_array));
last_op->extended_value = type;
*result = last_op->result;