]> granicus.if.org Git - php/commitdiff
Use appropriate macro
authorAnatol Belski <ab@php.net>
Fri, 17 Nov 2017 21:52:38 +0000 (22:52 +0100)
committerAnatol Belski <ab@php.net>
Fri, 17 Nov 2017 22:32:37 +0000 (23:32 +0100)
ext/date/php_date.c

index b5d094c83c81785acd7b8187b36725b0f65b3180..6c26dfade3b467d74ba6c16a2b7d1aadbe824c03 100644 (file)
@@ -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);