diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-18 10:14:03 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-18 10:14:03 +0100 |
| commit | 1b411c039f5c7646eb14b7920bf4fa794c982de0 (patch) | |
| tree | 3974dab65276129e697006150466519bf2135f1c /ext/date/php_date.c | |
| parent | 51ed4a8d8f0e50a182c3697df8242356f80dd460 (diff) | |
| parent | c4464526cd8c7ef246ea4be145d798e084460d9d (diff) | |
| download | php-git-1b411c039f5c7646eb14b7920bf4fa794c982de0.tar.gz | |
Merge branch 'PHP-7.3' into PHP-7.4
Diffstat (limited to 'ext/date/php_date.c')
| -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); } /* }}} */ |
