File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -234,9 +234,7 @@ static void Calendar_objects_free(zend_object *object)
234
234
/* {{{ Calendar_object_create */
235
235
static zend_object *Calendar_object_create (zend_class_entry *ce)
236
236
{
237
- Calendar_object* intern;
238
-
239
- intern = (Calendar_object*)ecalloc (1 , sizeof (Calendar_object) + sizeof (zval) * (ce->default_properties_count - 1 ));
237
+ Calendar_object* intern = (Calendar_object*)zend_object_alloc (sizeof (Calendar_object), ce);
240
238
241
239
zend_object_std_init (&intern->zo , ce);
242
240
object_properties_init (&intern->zo , ce);
Original file line number Diff line number Diff line change @@ -204,9 +204,7 @@ static zend_object_iterator *IntlIterator_get_iterator(
204
204
205
205
static zend_object *IntlIterator_object_create (zend_class_entry *ce)
206
206
{
207
- IntlIterator_object *intern;
208
-
209
- intern = (IntlIterator_object*)ecalloc (1 , sizeof (IntlIterator_object) + sizeof (zval) * (ce->default_properties_count - 1 ));
207
+ IntlIterator_object *intern = (IntlIterator_object*)zend_object_alloc (sizeof (IntlIterator_object), ce);
210
208
211
209
zend_object_std_init (&intern->zo , ce);
212
210
object_properties_init (&intern->zo , ce);
Original file line number Diff line number Diff line change @@ -335,9 +335,7 @@ static void TimeZone_objects_free(zend_object *object)
335
335
/* {{{ TimeZone_object_create */
336
336
static zend_object *TimeZone_object_create (zend_class_entry *ce)
337
337
{
338
- TimeZone_object* intern;
339
-
340
- intern = (TimeZone_object*)ecalloc (1 , sizeof (TimeZone_object) + sizeof (zval) * (ce->default_properties_count - 1 ));
338
+ TimeZone_object* intern = (TimeZone_object*)zend_object_alloc (sizeof (TimeZone_object), ce);
341
339
342
340
zend_object_std_init (&intern->zo , ce);
343
341
object_properties_init (&intern->zo , ce);
You can’t perform that action at this time.
0 commit comments