Skip to content

Commit a8473b0

Browse files
committed
Wrap argument in phongo_str() compatibility macro
1 parent 2bd3dc0 commit a8473b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phongo_compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
# error Unsupported architecture (integers are neither 32-bit nor 64-bit)
117117
#endif
118118
# define SIZEOF_PHONGO_LONG SIZEOF_ZEND_LONG
119-
# define phongo_str(str) str->val
119+
# define phongo_str(str) (str)->val
120120
# define phongo_create_object_retval zend_object*
121121
# define PHONGO_ALLOC_OBJECT_T(_obj_t, _class_type) (_obj_t *)ecalloc(1, sizeof(_obj_t)+zend_object_properties_size(_class_type))
122122
# define PHONGO_TSRMLS_FETCH_FROM_CTX(user_data)

0 commit comments

Comments
 (0)