Skip to content

Commit d209ccd

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents 7e7ef44 + ab07bc1 commit d209ccd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ext/date/php_date.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4736,20 +4736,20 @@ PHP_METHOD(DatePeriod, getDateInterval)
47364736
*/
47374737
PHP_METHOD(DatePeriod, getRecurrences)
47384738
{
4739-
php_period_obj *dpobj;
4740-
php_date_obj *dateobj;
4739+
php_period_obj *dpobj;
4740+
php_date_obj *dateobj;
47414741

4742-
if (zend_parse_parameters_none() == FAILURE) {
4743-
return;
4744-
}
4742+
if (zend_parse_parameters_none() == FAILURE) {
4743+
return;
4744+
}
47454745

4746-
dpobj = Z_PHPPERIOD_P(ZEND_THIS);
4746+
dpobj = Z_PHPPERIOD_P(getThis());
47474747

4748-
if (0 == dpobj->recurrences - dpobj->include_start_date) {
4749-
return;
4750-
}
4748+
if (0 == dpobj->recurrences - dpobj->include_start_date) {
4749+
return;
4750+
}
47514751

4752-
RETURN_LONG(dpobj->recurrences - dpobj->include_start_date);
4752+
RETURN_LONG(dpobj->recurrences - dpobj->include_start_date);
47534753
}
47544754
/* }}} */
47554755

0 commit comments

Comments
 (0)