diff options
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index 94ec452e60..d7f3e6c34b 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -414,15 +414,15 @@ static inline int _php_stream_path_param_encode(zval **ppzval, char **ppath, int } MAKE_STD_ZVAL(zpath); ZVAL_STRINGL(zpath, path, path_len, 0); - zpath->is_ref = 0; - zpath->refcount = 1; + Z_UNSET_ISREF_P(zpath); + Z_SET_REFCOUNT_P(zpath, 1); /* Replace the param stack with the new zval */ zval_ptr_dtor(ppzval); *ppzval = zpath; } else if (Z_TYPE_PP(ppzval) != IS_STRING) { - if ((*ppzval)->is_ref || - (*ppzval)->refcount > 1) { + if (Z_ISREF_PP(ppzval) || + Z_REFCOUNT_PP(ppzval) > 1) { zval *zpath; /* Produce a new zval of type string */ @@ -430,8 +430,8 @@ static inline int _php_stream_path_param_encode(zval **ppzval, char **ppath, int *zpath = **ppzval; zval_copy_ctor(zpath); convert_to_string(zpath); - zpath->is_ref = 0; - zpath->refcount = 1; + Z_UNSET_ISREF_P(zpath); + Z_SET_REFCOUNT_P(zpath, 1); /* Replace the param stack with it */ zval_ptr_dtor(ppzval); |