Commits

laru...@c90b9560-bf6c-de11-be94-00142212c4b1  committed 6b16f8d

Fixed bug #60558 (Invalid read and writes)

  • Participants
  • Parent commits b63c787

Comments (0)

Files changed (1)

File Zend/zend_object_handlers.c

 					    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]);