summaryrefslogtreecommitdiff
path: root/ext/date/php_date.h
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2012-12-20 13:22:18 +0000
committerDerick Rethans <github@derickrethans.nl>2013-01-12 15:16:25 +0000
commit62129f31a758e86f62410262bb6096f1b2584363 (patch)
treeb23e217baf4907eb765a00cb7afab4bb9fb92ed0 /ext/date/php_date.h
parent793b52b576e7af8823ae24622c6a331fd473e149 (diff)
downloadphp-git-immutable-date.tar.gz
Make DatePeriod support DateTimeImmutable as well.immutable-date
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.
Diffstat (limited to 'ext/date/php_date.h')
-rw-r--r--ext/date/php_date.h1
1 files changed, 1 insertions, 0 deletions
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;