Home
last modified time | relevance | path

Searched refs:notifier (Results 1 – 3 of 3) sorted by relevance

/PHP-7.1/main/streams/
H A Dphp_stream_context.h47 void (*dtor)(php_stream_notifier *notifier);
54 php_stream_notifier *notifier; member
68 PHPAPI void php_stream_notification_free(php_stream_notifier *notifier);
97 #define php_stream_notify_progress(context, bsofar, bmax) do { if ((context) && (context)->notifier
102 (context)->notifier->progress = (sofar); \
103 (context)->notifier->progress_max = (bmax); \
104 (context)->notifier->mask |= PHP_STREAM_NOTIFIER_PROGRESS; \
107 …ment(context, dsofar, dmax) do { if ((context) && (context)->notifier && (context)->notifier->mask…
108 (context)->notifier->progress += (dsofar); \
109 (context)->notifier->progress_max += (dmax); \
[all …]
H A Dstreams.c2175 if (context && context->notifier)
2176 context->notifier->func(context, notifycode, severity, xmsg, xcode, bytes_sofar, bytes_max, ptr);
2185 if (context->notifier) {
2186 php_stream_notification_free(context->notifier);
2187 context->notifier = NULL;
2197 context->notifier = NULL;
2209 PHPAPI void php_stream_notification_free(php_stream_notifier *notifier) argument
2211 if (notifier->dtor) {
2212 notifier->dtor(notifier);
2214 efree(notifier);
/PHP-7.1/ext/standard/
H A Dstreamsfuncs.c829 zval *callback = &context->notifier->ptr; in user_space_stream_notifier()
856 if (notifier && Z_TYPE(notifier->ptr) != IS_UNDEF) { in user_space_stream_notifier_dtor()
857 zval_ptr_dtor(&notifier->ptr); in user_space_stream_notifier_dtor()
858 ZVAL_UNDEF(&notifier->ptr); in user_space_stream_notifier_dtor()
891 if (context->notifier) { in parse_context_params()
892 php_stream_notification_free(context->notifier); in parse_context_params()
893 context->notifier = NULL; in parse_context_params()
896 context->notifier = php_stream_notification_alloc(); in parse_context_params()
898 ZVAL_COPY(&context->notifier->ptr, tmp); in parse_context_params()
1048 …if (context->notifier && Z_TYPE(context->notifier->ptr) != IS_UNDEF && context->notifier->func == … in PHP_FUNCTION()
[all …]

Completed in 23 milliseconds