diff options
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r-- | ext/standard/streamsfuncs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 2107807c35..0efd14c57f 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -196,7 +196,7 @@ PHP_FUNCTION(stream_socket_server) context = php_stream_context_from_zval(zcontext, flags & PHP_FILE_NO_DEFAULT_CONTEXT); if (context) { - context->res->gc.refcount++; + GC_REFCOUNT(context->res)++; } if (zerrno) { @@ -1236,7 +1236,7 @@ static void apply_filter_to_stream(int append, INTERNAL_FUNCTION_PARAMETERS) if (filter) { filter->res = ZEND_REGISTER_RESOURCE(NULL, filter, php_file_le_stream_filter()); - filter->res->gc.refcount++; + GC_REFCOUNT(filter->res)++; RETURN_RES(filter->res); } else { RETURN_FALSE; |