]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.3' into PHP-7.4
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 18 Mar 2019 09:14:03 +0000 (10:14 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 18 Mar 2019 09:14:03 +0000 (10:14 +0100)
1  2 
Zend/zend_portability.h
ext/date/php_date.c

Simple merge
index ec3ead6f2a0a3e318258332c07171298142961e4,541fdafea3aa347b5cbfc7c26d7ede73598aa778..565e0185382a6732513468f6ba24250c37793a96
@@@ -4735,20 -4736,19 +4735,19 @@@ PHP_METHOD(DatePeriod, getDateInterval
  */
  PHP_METHOD(DatePeriod, getRecurrences)
  {
-         php_period_obj   *dpobj;
-         php_date_obj     *dateobj;
 -      php_period_obj *dpobj;
++      php_period_obj   *dpobj;
  
-         if (zend_parse_parameters_none() == FAILURE) {
-                 return;
-         }
+       if (zend_parse_parameters_none() == FAILURE) {
 -              return;
++                      return;
+       }
  
-         dpobj = Z_PHPPERIOD_P(ZEND_THIS);
 -      dpobj = Z_PHPPERIOD_P(getThis());
++      dpobj = Z_PHPPERIOD_P(ZEND_THIS);
  
-         if (0 == dpobj->recurrences - dpobj->include_start_date) {
-                 return;
-         }
+       if (0 == dpobj->recurrences - dpobj->include_start_date) {
 -              return;
++                      return;
+       }
  
-         RETURN_LONG(dpobj->recurrences - dpobj->include_start_date);
+       RETURN_LONG(dpobj->recurrences - dpobj->include_start_date);
  }
  /* }}} */