1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00

Fixed bug #60558 (Invalid read and writes)

This commit is contained in:
Xinchen Hui
2011-12-19 09:58:29 +00:00
parent c36926ba4c
commit d589d33468
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ PHP NEWS
. Fixed bug #60536 (Traits Segfault). (Laruence)
. Fixed bug #60362 (non-existent sub-sub keys should not have values).
(Laruence, alan_k, Stas)
. Fixed bug #60558 (Invalid read and writes). (Laruence)
- CLI SAPI:
. Fixed bug #60477 (Segfault after two multipart/form-data POST requests,
+1
View File
@@ -85,6 +85,7 @@ ZEND_API void rebuild_object_properties(zend_object *zobj) /* {{{ */
prop_info->offset >= 0 &&
zobj->properties_table[prop_info->offset]) {
if (UNEXPECTED(flags[prop_info->offset])) {
Z_ADDREF_P(*(zval **)zobj->properties_table[prop_info->offset]);
zend_hash_quick_add(zobj->properties, prop_info->name, prop_info->name_length+1, prop_info->h, (void**)zobj->properties_table[prop_info->offset], sizeof(zval*), (void**)&zobj->properties_table[prop_info->offset]);
} else {
zend_hash_quick_add(zobj->properties, prop_info->name, prop_info->name_length+1, prop_info->h, (void**)&zobj->properties_table[prop_info->offset], sizeof(zval*), (void**)&zobj->properties_table[prop_info->offset]);