]> granicus.if.org Git - php/commitdiff
- Fix bug #31478 (segfault with empty())
authorMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 11 Jan 2005 17:17:48 +0000 (17:17 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 11 Jan 2005 17:17:48 +0000 (17:17 +0000)
Zend/zend_compile.c

index faa6c3574525f3069f36e959adac5cd17abd3698..cad9f26fcda1b9032b6fe89d3eae0385b6600684 100644 (file)
@@ -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;