cvs: php-src /main/streams php_stream_context.h
| From: | Sara Golemon | Date: | Mon, 01 Mar 2004 05:33:20 +0000 |
| Subject: | cvs: php-src /main/streams php_stream_context.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-26450@lists.php.net to get a copy of this message | ||
pollita Mon Mar 1 00:33:20 2004 EDT
Modified files:
/php-src/main/streams php_stream_context.h
Log:
Must addref the resource when we make a new zval reference to it that will be exported to
userspace.
http://cvs.php.net/diff.php/php-src/main/streams/php_stream_context.h?r1=1.9&r2=1.10&ty=u
Index: php-src/main/streams/php_stream_context.h
diff -u php-src/main/streams/php_stream_context.h:1.9 php-src/main/streams/php_stream_context.h:1.10
--- php-src/main/streams/php_stream_context.h:1.9 Fri Feb 20 03:22:12 2004
+++ php-src/main/streams/php_stream_context.h Mon Mar 1 00:33:19 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_stream_context.h,v 1.9 2004/02/20 08:22:12 hholzgra Exp $ */
+/* $Id: php_stream_context.h,v 1.10 2004/03/01 05:33:19 pollita Exp $ */
/* Stream context and status notification related definitions */
@@ -38,7 +38,7 @@
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;