Skip to content

Commit ab07bc1

Browse files
committed
Fixed 7.2 compat issue
1 parent 1307275 commit ab07bc1

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
@@ -4742,20 +4742,20 @@ PHP_METHOD(DatePeriod, getDateInterval)
47424742
*/
47434743
PHP_METHOD(DatePeriod, getRecurrences)
47444744
{
4745-
php_period_obj *dpobj;
4746-
php_date_obj *dateobj;
4745+
php_period_obj *dpobj;
4746+
php_date_obj *dateobj;
47474747

4748-
if (zend_parse_parameters_none() == FAILURE) {
4749-
return;
4750-
}
4748+
if (zend_parse_parameters_none() == FAILURE) {
4749+
return;
4750+
}
47514751

4752-
dpobj = Z_PHPPERIOD_P(ZEND_THIS);
4752+
dpobj = Z_PHPPERIOD_P(getThis());
47534753

4754-
if (0 == dpobj->recurrences - dpobj->include_start_date) {
4755-
return;
4756-
}
4754+
if (0 == dpobj->recurrences - dpobj->include_start_date) {
4755+
return;
4756+
}
47574757

4758-
RETURN_LONG(dpobj->recurrences - dpobj->include_start_date);
4758+
RETURN_LONG(dpobj->recurrences - dpobj->include_start_date);
47594759
}
47604760
/* }}} */
47614761

0 commit comments

Comments
 (0)