]> granicus.if.org Git - php/commitdiff
fixed memory leak in bug #28972 ([] operator overflow treatment is incorrect), not...
authorDmitry Stogov <dmitry@php.net>
Tue, 7 Jun 2005 10:21:52 +0000 (10:21 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 7 Jun 2005 10:21:52 +0000 (10:21 +0000)
Zend/zend_execute.c

index 0a69d16747c9ac5c7a086343502531943500b43f..ffae16f5774fbd83100e7f3e6b54d38fa1066e97 100644 (file)
@@ -1151,7 +1151,7 @@ static void zend_fetch_dimension_address(temp_variable *result, zval **container
                                new_zval->refcount++;
                                if (zend_hash_next_index_insert(container->value.ht, &new_zval, sizeof(zval *), (void **) &retval) == FAILURE) {
                                        zend_error(E_WARNING, "Cannot add element to the array as the next element is already occupied");
-                                 retval = &EG(uninitialized_zval_ptr);
+                                       retval = &EG(error_zval_ptr);
                                        new_zval->refcount--; 
                                }
                        } else {