summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2019-03-17 14:55:53 -0400
committerDerick Rethans <github@derickrethans.nl>2019-03-17 14:55:53 -0400
commitd209ccd4ccf1b2ea63e79bd9f6d7d474693143a2 (patch)
tree694bc820bfd24940a488520c92e4dd2098c7b19f /ext/date/php_date.c
parent7e7ef44fab154e972a4677c579e73cb9ec175511 (diff)
parentab07bc1fff27c19b390e0f57ceb4a0523085fdfa (diff)
downloadphp-git-d209ccd4ccf1b2ea63e79bd9f6d7d474693143a2.tar.gz
Merge branch 'PHP-7.2' into PHP-7.3
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r--ext/date/php_date.c20
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);
}
/* }}} */