mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Add parenthesis to macro arguments in dom_properties.h
This commit is contained in:
parent
ae0ba1a5c6
commit
c98a7c1195
@ -164,8 +164,8 @@ zend_result dom_xpath_register_node_ns_write(dom_object *obj, zval *newval);
|
||||
#endif
|
||||
|
||||
#define DOM_PROP_NODE(type, name, obj) \
|
||||
type name = (type) dom_object_get_node(obj); \
|
||||
if (UNEXPECTED(name == NULL)) { \
|
||||
type (name) = (type) dom_object_get_node(obj); \
|
||||
if (UNEXPECTED((name) == NULL)) { \
|
||||
php_dom_throw_error(INVALID_STATE_ERR, true); \
|
||||
return FAILURE; \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user