diff options
author | Sara Golemon <pollita@php.net> | 2004-03-01 05:33:19 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2004-03-01 05:33:19 +0000 |
commit | 860daac5d8ab2156b1ce31be52b822f6020b3c12 (patch) | |
tree | 64f466bf234938db41ef36ccfc37b775fa618d49 /main | |
parent | 9cf988c2015ec4898a8216b62e658f0a630da491 (diff) | |
download | php-git-860daac5d8ab2156b1ce31be52b822f6020b3c12.tar.gz |
Must addref the resource when we make a new zval reference to it that will be exported to userspace.
Diffstat (limited to 'main')
-rw-r--r-- | main/streams/php_stream_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/php_stream_context.h b/main/streams/php_stream_context.h index 3b1eb09943..fadb388204 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()) ) -#define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, (context)->rsrc_id); } +#define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, (context)->rsrc_id); zend_list_addref((context)->rsrc_id); } typedef struct _php_stream_notifier php_stream_notifier; |