cvs: Zend(PHP_4_4) / zend_execute.c
| From: | Dmitry Stogov | Date: | Tue, 07 Jun 2005 10:24:54 +0000 |
| Subject: | cvs: Zend(PHP_4_4) / zend_execute.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3741@lists.php.net to get a copy of this message | ||
dmitry Tue Jun 7 06:24:54 2005 EDT
Modified files: (Branch: PHP_4_4)
/Zend zend_execute.c
Log:
fixed memory leak in bug #28972 ([] operator overflow treatment is incorrect), not the bug itself.
http://cvs.php.net/diff.php/Zend/zend_execute.c?r1=1.316.2.49.2.4&r2=1.316.2.49.2.5&ty=u
Index: Zend/zend_execute.c
diff -u Zend/zend_execute.c:1.316.2.49.2.4 Zend/zend_execute.c:1.316.2.49.2.5
--- Zend/zend_execute.c:1.316.2.49.2.4 Tue Jun 7 05:57:45 2005
+++ Zend/zend_execute.c Tue Jun 7 06:24:53 2005
@@ -801,7 +801,7 @@
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 {