summaryrefslogtreecommitdiff
path: root/main/streams/php_stream_context.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-02-14 13:40:11 +0400
committerDmitry Stogov <dmitry@zend.com>2014-02-14 13:40:11 +0400
commit398256e5fe098bbc39579a2fd0b3782646cade0c (patch)
treeed3e57c9808c965914d1c4a4e69c7a25f3344323 /main/streams/php_stream_context.h
parent40e053e7f333b5fc3f4c75c964600666810cc969 (diff)
downloadphp-git-398256e5fe098bbc39579a2fd0b3782646cade0c.tar.gz
Use better data structures (incomplete)
Diffstat (limited to 'main/streams/php_stream_context.h')
-rw-r--r--main/streams/php_stream_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/php_stream_context.h b/main/streams/php_stream_context.h
index 6740124f5a..22c914ce28 100644
--- a/main/streams/php_stream_context.h
+++ b/main/streams/php_stream_context.h
@@ -38,7 +38,7 @@ typedef void (*php_stream_notification_func)(php_stream_context *context,
FG(default_context) ? FG(default_context) : \
(FG(default_context) = php_stream_context_alloc(TSRMLS_C)) )
-#define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, (context)->res); zend_list_addref((context)->res); }
+#define php_stream_context_to_zval(context, zval) { ZVAL_RES(zval, (context)->res); (context)->res->gc.refcount++; }
typedef struct _php_stream_notifier php_stream_notifier;