Skip to content

Commit

Permalink
Fixed 7.2 compat issue
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Mar 17, 2019
1 parent 1307275 commit ab07bc1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ext/date/php_date.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
/* }}} */

Expand Down

0 comments on commit ab07bc1

Please sign in to comment.