mirror of
https://github.com/php/php-src.git
synced 2026-04-20 22:41:20 +02:00
Fixed dynamic properies table construction
This commit is contained in:
@@ -100,7 +100,9 @@ ZEND_API void rebuild_object_properties(zend_object *zobj) /* {{{ */
|
||||
prop_info->offset >= 0 &&
|
||||
Z_TYPE(zobj->properties_table[prop_info->offset]) != IS_UNDEF) {
|
||||
zval *zv = zend_hash_add(zobj->properties, prop_info->name, &zobj->properties_table[prop_info->offset]);
|
||||
ZVAL_INDIRECT(&zobj->properties_table[prop_info->offset], zv);
|
||||
if (zv) {
|
||||
ZVAL_INDIRECT(&zobj->properties_table[prop_info->offset], zv);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user