Fixed 7.2 compat issue

This commit is contained in:
Derick Rethans committed 2019-03-17 14:53:56 -04:00
1 parent 1307275b43
commit ab07bc1fff
1 file changed
+10 -10
+10 -10
View File
@@ -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);
}
/* }}} */