summaryrefslogtreecommitdiff
path: root/main/streams/php_stream_context.h
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2003-06-27 16:23:58 +0000
committerSara Golemon <pollita@php.net>2003-06-27 16:23:58 +0000
commit2e4ef86e10897a0e64500d3aeeaa59d58f8f4f5b (patch)
tree1b2f818b85dcaa6b151a68c43498280e0a13ff2f /main/streams/php_stream_context.h
parentecf58cf8957738451c63a5b7b98b56c4a1c1c521 (diff)
downloadphp-git-2e4ef86e10897a0e64500d3aeeaa59d58f8f4f5b.tar.gz
MFB
Plug leak in context notifiers, implement notifier->dtor
Diffstat (limited to 'main/streams/php_stream_context.h')
-rw-r--r--main/streams/php_stream_context.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/streams/php_stream_context.h b/main/streams/php_stream_context.h
index 488029938b..7bc0233028 100644
--- a/main/streams/php_stream_context.h
+++ b/main/streams/php_stream_context.h
@@ -40,12 +40,15 @@ typedef void (*php_stream_notification_func)(php_stream_context *context,
#define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, (context)->rsrc_id); }
-typedef struct _php_stream_notifier {
+typedef struct _php_stream_notifier php_stream_notifier;
+
+struct _php_stream_notifier {
php_stream_notification_func func;
+ void (*dtor)(php_stream_notifier *notifier);
void *ptr;
int mask;
size_t progress, progress_max; /* position for progress notification */
-} php_stream_notifier;
+};
struct _php_stream_context {
php_stream_notifier *notifier;