diff options
Diffstat (limited to 'ext/intl/msgformat/msgformat_class.c')
-rw-r--r-- | ext/intl/msgformat/msgformat_class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/msgformat/msgformat_class.c b/ext/intl/msgformat/msgformat_class.c index bb66bb4ba1..8d464c6ca4 100644 --- a/ext/intl/msgformat/msgformat_class.c +++ b/ext/intl/msgformat/msgformat_class.c @@ -56,7 +56,7 @@ zend_object *MessageFormatter_object_create(zend_class_entry *ce) { MessageFormatter_object* intern; - intern = ecalloc( 1, sizeof(MessageFormatter_object) + sizeof(zval) * (ce->default_properties_count - 1)); + intern = ecalloc( 1, sizeof(MessageFormatter_object) + zend_object_properties_size(ce)); msgformat_data_init( &intern->mf_data ); zend_object_std_init( &intern->zo, ce ); object_properties_init(&intern->zo, ce); |