diff options
author | Derick Rethans <github@derickrethans.nl> | 2012-12-20 13:22:18 +0000 |
---|---|---|
committer | Derick Rethans <github@derickrethans.nl> | 2013-01-12 15:16:25 +0000 |
commit | 62129f31a758e86f62410262bb6096f1b2584363 (patch) | |
tree | b23e217baf4907eb765a00cb7afab4bb9fb92ed0 /ext/date/php_date.h | |
parent | 793b52b576e7af8823ae24622c6a331fd473e149 (diff) | |
download | php-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.h | 1 |
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; |