com php-src: Fixed 7.2 compat issue: ext/date/php_date.c
| From: | Derick Rethans | Date: | Sun, 17 Mar 2019 18:53:56 +0000 |
| Subject: | com php-src: Fixed 7.2 compat issue: ext/date/php_date.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105181@lists.php.net to get a copy of this message | ||
Commit: ab07bc1fff27c19b390e0f57ceb4a0523085fdfa
Author: Derick Rethans <github@derickrethans.nl> Sun, 17 Mar 2019 14:53:56 -0400
Parents: 1307275b431b3d15523237196a7e241709eceb95
Branches: PHP-7.2 PHP-7.3
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ab07bc1fff27c19b390e0f57ceb4a0523085fdfa
Log:
Fixed 7.2 compat issue
Changed paths:
M ext/date/php_date.c
Diff:
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index f6f0c646..7d4f9aa 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -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);
}
/* }}} */