diff options
-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); } /* }}} */ |