mirror of
https://github.com/php/php-src.git
synced 2026-04-21 06:51:18 +02:00
Fixed segfault
This commit is contained in:
+5
-3
@@ -3926,9 +3926,11 @@ ZEND_API int zend_update_static_property(zend_class_entry *scope, const char *na
|
||||
zval garbage;
|
||||
|
||||
ZVAL_COPY_VALUE(&garbage, property);
|
||||
Z_ADDREF_P(value);
|
||||
if (Z_ISREF_P(value)) {
|
||||
SEPARATE_ZVAL(value);
|
||||
if (Z_REFCOUNTED_P(value)) {
|
||||
Z_ADDREF_P(value);
|
||||
if (Z_ISREF_P(value)) {
|
||||
SEPARATE_ZVAL(value);
|
||||
}
|
||||
}
|
||||
ZVAL_COPY_VALUE(property, value);
|
||||
zval_ptr_dtor(&garbage);
|
||||
|
||||
Reference in New Issue
Block a user