From 62129f31a758e86f62410262bb6096f1b2584363 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 20 Dec 2012 13:22:18 +0000 Subject: Make DatePeriod support DateTimeImmutable as well. If the start element is a DateTimeImmutable object, then all returned objects are also DateTimeImmutable objects. If the start element is a DateTime object, then all returned objects are DateTime objects. --- ext/date/php_date.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/date/php_date.h') diff --git a/ext/date/php_date.h b/ext/date/php_date.h index 19c692b57f..3af3fa42ed 100644 --- a/ext/date/php_date.h +++ b/ext/date/php_date.h @@ -154,6 +154,7 @@ struct _php_interval_obj { struct _php_period_obj { zend_object std; timelib_time *start; + zend_class_entry *start_ce; timelib_time *current; timelib_time *end; timelib_rel_time *interval; -- cgit v1.2.1