We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b22de8 commit 5b754d6Copy full SHA for 5b754d6
Zend/zend_objects_API.h
@@ -84,7 +84,7 @@ static zend_always_inline size_t zend_object_properties_size(zend_class_entry *c
84
{
85
return sizeof(zval) *
86
(ce->default_properties_count -
87
- ((ce->ce_flags & ZEND_ACC_USE_GUARDS) ? 0 : 1));
+ (ce->default_properties_count ? ((ce->ce_flags & ZEND_ACC_USE_GUARDS) ? 0 : 1) : 0));
88
}
89
90
/* Allocates object type and zeros it, but not the standard zend_object and properties.
0 commit comments