diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/date/php_date.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index ec3ead6f2a..565e018538 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -4735,20 +4735,19 @@ PHP_METHOD(DatePeriod, getDateInterval) */ PHP_METHOD(DatePeriod, getRecurrences) { - php_period_obj *dpobj; - php_date_obj *dateobj; + php_period_obj *dpobj; - if (zend_parse_parameters_none() == FAILURE) { - return; - } + if (zend_parse_parameters_none() == FAILURE) { + return; + } - dpobj = Z_PHPPERIOD_P(ZEND_THIS); + dpobj = Z_PHPPERIOD_P(ZEND_THIS); - 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); } /* }}} */ |
