]> granicus.if.org Git - php/commitdiff
- Fix crash with string offset assignments.
authorAndi Gutmans <andi@php.net>
Sat, 13 Nov 1999 18:11:34 +0000 (18:11 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 13 Nov 1999 18:11:34 +0000 (18:11 +0000)
Zend/zend_execute.c

index 0bb1b81efd1ed837f86077fb33c442ff541c28dc..5123d9890d652192a2f9395a62358073714f9d21 100644 (file)
@@ -285,7 +285,7 @@ static inline void zend_assign_to_variable(znode *result, znode *op1, znode *op2
                                                Ts[result->u.var].var = &T->EA.str;
                                                */
                                        }
-                                       zval_ptr_dtor(&T->EA.str);
+                                       /* zval_ptr_dtor(&T->EA.str); Nuke this line if it doesn't cause a leak */
                                        T->tmp_var.type = IS_STRING;
                                }
                                break;