diff options
author | Derick Rethans <github@derickrethans.nl> | 2019-03-17 14:55:53 -0400 |
---|---|---|
committer | Derick Rethans <github@derickrethans.nl> | 2019-03-17 14:55:53 -0400 |
commit | d209ccd4ccf1b2ea63e79bd9f6d7d474693143a2 (patch) | |
tree | 694bc820bfd24940a488520c92e4dd2098c7b19f | |
parent | 7e7ef44fab154e972a4677c579e73cb9ec175511 (diff) | |
parent | ab07bc1fff27c19b390e0f57ceb4a0523085fdfa (diff) | |
download | php-git-d209ccd4ccf1b2ea63e79bd9f6d7d474693143a2.tar.gz |
Merge branch 'PHP-7.2' into PHP-7.3
-rw-r--r-- | ext/date/php_date.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index a8c38f15a6..ebcfea7d00 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -4736,20 +4736,20 @@ PHP_METHOD(DatePeriod, getDateInterval) */ PHP_METHOD(DatePeriod, getRecurrences) { - php_period_obj *dpobj; - php_date_obj *dateobj; + php_period_obj *dpobj; + php_date_obj *dateobj; - if (zend_parse_parameters_none() == FAILURE) { - return; - } + if (zend_parse_parameters_none() == FAILURE) { + return; + } - dpobj = Z_PHPPERIOD_P(ZEND_THIS); + dpobj = Z_PHPPERIOD_P(getThis()); - if (0 == dpobj->recurrences - dpobj->include_start_date) { - return; - } + if (0 == dpobj->recurrences - dpobj->include_start_date) { + return; + } - RETURN_LONG(dpobj->recurrences - dpobj->include_start_date); + RETURN_LONG(dpobj->recurrences - dpobj->include_start_date); } /* }}} */ |