Skip to content

Commit 558fa37

Browse files
committed
test
1 parent 080aa68 commit 558fa37

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Zend/zend_API.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,13 @@ static zend_always_inline void _object_properties_init(zend_object *object, zend
16101610

16111611
if (!(class_type->ce_flags & ZEND_ACC_HAS_RC_PROPS)) {
16121612
// printf("fast path %s\n", class_type->name->val);
1613-
memcpy(dst, src, sizeof(zval) * class_type->default_properties_count);
1613+
// memcpy(dst, src, sizeof(zval) * class_type->default_properties_count);
1614+
zval *end = src + class_type->default_properties_count;
1615+
do {
1616+
ZVAL_COPY_VALUE(dst, src);
1617+
src++;
1618+
dst++;
1619+
} while (src != end);
16141620
} else {
16151621
// printf("slow path %s\n", class_type->name->val);
16161622
zval *end = src + class_type->default_properties_count;

0 commit comments

Comments
 (0)