]> granicus.if.org Git - php/commitdiff
Revert - need to look for a better solution
authorMarcus Boerger <helly@php.net>
Mon, 15 Sep 2003 21:00:38 +0000 (21:00 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 15 Sep 2003 21:00:38 +0000 (21:00 +0000)
Zend/zend_execute.c

index 5cf85d3478fce28afa221178de875d43d028520c..6d0111f93610562c45e2199b469c6d632f657cc4 100644 (file)
@@ -763,8 +763,6 @@ fetch_string_dim:
                                                retval = &EG(uninitialized_zval_ptr);
                                                break;
                                        case BP_VAR_RW:
-                                               offset_key = estrndup(offset_key, offset_key_length);
-                                               /* calling an user error handler may free zval dim, so we copy the string */
                                                zend_error(E_NOTICE,"Undefined index:  %s", offset_key);
                                                /* break missing intentionally */
                                        case BP_VAR_W: {
@@ -773,9 +771,6 @@ fetch_string_dim:
                                                        new_zval->refcount++;
                                                        zend_symtable_update(ht, offset_key, offset_key_length+1, &new_zval, sizeof(zval *), (void **) &retval);
                                                }
-                                               if (type == BP_VAR_RW) {
-                                                       efree(offset_key);
-                                               }
                                                break;
                                }
                        }