Skip to content

Commit

Permalink
Fixed bug #74878
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jul 7, 2017
1 parent 134047d commit 9069734
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ PHP NEWS
unserialize). (Nikita)
. Fixed bug #74819 (wddx_deserialize() heap out-of-bound read via
php_parse_date()). (Derick)
. Fixed bug #74878 (Data race in ZTS builds). (Nikita)

- EXIF:
. Fixed bug #74428 (exif_read_data(): "Illegal IFD size" warning occurs with
Expand Down
4 changes: 4 additions & 0 deletions Zend/zend_API.c
Original file line number Diff line number Diff line change
Expand Up @@ -3742,6 +3742,10 @@ ZEND_API int zend_declare_property_ex(zend_class_entry *ce, zend_string *name, z
break;
}
}

/* Must be interned to avoid ZTS data races */
name = zend_new_interned_string(zend_string_copy(name));

if (access_type & ZEND_ACC_PUBLIC) {
property_info->name = zend_string_copy(name);
} else if (access_type & ZEND_ACC_PRIVATE) {
Expand Down

0 comments on commit 9069734

Please sign in to comment.