Skip to content

Commit 9069734

Browse files
committed
Fixed bug #74878
1 parent 134047d commit 9069734

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ PHP NEWS
99
unserialize). (Nikita)
1010
. Fixed bug #74819 (wddx_deserialize() heap out-of-bound read via
1111
php_parse_date()). (Derick)
12+
. Fixed bug #74878 (Data race in ZTS builds). (Nikita)
1213

1314
- EXIF:
1415
. Fixed bug #74428 (exif_read_data(): "Illegal IFD size" warning occurs with

Zend/zend_API.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,6 +3742,10 @@ ZEND_API int zend_declare_property_ex(zend_class_entry *ce, zend_string *name, z
37423742
break;
37433743
}
37443744
}
3745+
3746+
/* Must be interned to avoid ZTS data races */
3747+
name = zend_new_interned_string(zend_string_copy(name));
3748+
37453749
if (access_type & ZEND_ACC_PUBLIC) {
37463750
property_info->name = zend_string_copy(name);
37473751
} else if (access_type & ZEND_ACC_PRIVATE) {

0 commit comments

Comments
 (0)