summaryrefslogtreecommitdiff
path: root/ext/intl/formatter/formatter_class.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/formatter/formatter_class.c')
-rw-r--r--ext/intl/formatter/formatter_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/formatter/formatter_class.c b/ext/intl/formatter/formatter_class.c
index ef54de9418..d15311201e 100644
--- a/ext/intl/formatter/formatter_class.c
+++ b/ext/intl/formatter/formatter_class.c
@@ -49,7 +49,7 @@ zend_object *NumberFormatter_object_create(zend_class_entry *ce)
{
NumberFormatter_object* intern;
- intern = ecalloc( 1, sizeof(NumberFormatter_object) + zend_object_properties_size(ce));
+ intern = zend_object_alloc(sizeof(NumberFormatter_object), ce);
formatter_data_init( &intern->nf_data );
zend_object_std_init( &intern->zo, ce );
object_properties_init(&intern->zo, ce);