We still need a check and zval_ptr_dtor(&context->notifier->ptr); in the
php_stream_context_free function, but since ptr is supposed to be a general
purpose container we need to define how that will be done.
zval_ptr_dtor(&context->options);
context->options = NULL;
}
+ if (context->notifier) {
+ php_stream_notification_free(context->notifier);
+ context->notifier = NULL;
+ }
efree(context);
}
php_stream_context *context;
context = ecalloc(1, sizeof(php_stream_context));
+ context->notifier = NULL;
MAKE_STD_ZVAL(context->options);
array_init(context->options);