Skip to content

Commit ce35cde

Browse files
committed
Renamed date_throw_error_with_parent_name to date_throw_uninitialized_error
1 parent 17b564c commit ce35cde

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/date/php_date.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static zend_object_handlers date_object_handlers_timezone;
309309
static zend_object_handlers date_object_handlers_interval;
310310
static zend_object_handlers date_object_handlers_period;
311311

312-
static void date_throw_error_with_parent_name(zend_class_entry *ce)
312+
static void date_throw_uninitialized_error(zend_class_entry *ce)
313313
{
314314
if (ce->type == ZEND_INTERNAL_CLASS) {
315315
zend_throw_error(date_ce_date_object_error, "Object of type %s has not been correctly initialized by calling parent::__construct() in its constructor", ZSTR_VAL(ce->name));
@@ -327,7 +327,7 @@ static void date_throw_error_with_parent_name(zend_class_entry *ce)
327327

328328
#define DATE_CHECK_INITIALIZED(member, ce) \
329329
if (!(member)) { \
330-
date_throw_error_with_parent_name(ce); \
330+
date_throw_uninitialized_error(ce); \
331331
RETURN_THROWS(); \
332332
}
333333

@@ -1641,7 +1641,7 @@ static void date_period_it_rewind(zend_object_iterator *iter)
16411641
timelib_time_dtor(iterator->object->current);
16421642
}
16431643
if (!iterator->object->start) {
1644-
date_throw_error_with_parent_name(date_ce_period);
1644+
date_throw_uninitialized_error(date_ce_period);
16451645
return;
16461646
}
16471647

@@ -3077,7 +3077,7 @@ static bool php_date_modify(zval *object, char *modify, size_t modify_len) /* {{
30773077
dateobj = Z_PHPDATE_P(object);
30783078

30793079
if (!(dateobj->time)) {
3080-
date_throw_error_with_parent_name(Z_OBJCE_P(object));
3080+
date_throw_uninitialized_error(Z_OBJCE_P(object));
30813081
return 0;
30823082
}
30833083

0 commit comments

Comments
 (0)