1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 18:13:00 +02:00

Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed memory leak
This commit is contained in:
Dmitry Stogov
2019-12-17 10:09:43 +03:00

View File

@@ -3570,7 +3570,9 @@ ZEND_API int zend_declare_typed_property(zend_class_entry *ce, zend_string *name
}
/* Must be interned to avoid ZTS data races */
name = zend_new_interned_string(zend_string_copy(name));
if (is_persistent_class(ce)) {
name = zend_new_interned_string(zend_string_copy(name));
}
}
if (access_type & ZEND_ACC_PUBLIC) {