com php-src: Use appropriate macro: ext/date/php_date.c

From: Date: Fri, 17 Nov 2017 22:32:37 +0000
Subject: com php-src: Use appropriate macro: ext/date/php_date.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100302@lists.php.net to get a copy of this message
Commit: c57a2dccae3b0c49e9b7df4ab912beb84ca31699 Author: Anatol Belski <ab@php.net> Fri, 17 Nov 2017 22:52:38 +0100 Parents: 95bfbeeea828b1074521779f15364895a22d54a1 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c57a2dccae3b0c49e9b7df4ab912beb84ca31699 Log: Use appropriate macro Changed paths: M ext/date/php_date.c Diff: diff --git a/ext/date/php_date.c b/ext/date/php_date.c index b5d094c..6c26dfa 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -2059,7 +2059,7 @@ static int date_interval_has_property(zval *object, zval *member, int type, void } else if (type == 1) { retval = zend_is_true(prop); } else if (type == 0) { - retval = (Z_TYPE(*prop) != IS_NULL); + retval = (Z_TYPE_P(prop) != IS_NULL); } } else { retval = (zend_get_std_object_handlers())->has_property(object, member, type, cache_slot);

« previous php.cvs (#100302) next »