diff options
author | Derick Rethans <github@derickrethans.nl> | 2019-03-17 14:53:56 -0400 |
---|---|---|
committer | Derick Rethans <github@derickrethans.nl> | 2019-03-17 14:53:56 -0400 |
commit | ab07bc1fff27c19b390e0f57ceb4a0523085fdfa (patch) | |
tree | b57f32ed1f86f0cd9887eccd7694e2ef78aa1209 | |
parent | 1307275b431b3d15523237196a7e241709eceb95 (diff) | |
download | php-git-ab07bc1fff27c19b390e0f57ceb4a0523085fdfa.tar.gz |
Fixed 7.2 compat issue
-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 f6f0c6468a..7d4f9aac70 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -4742,20 +4742,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); } /* }}} */ |