Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit fed7e0e

Browse files
committed
Add a bunch of arginfo annotations.
1 parent 1f8829b commit fed7e0e

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

ext/opencensus_trace_annotation.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848

4949
zend_class_entry* opencensus_trace_annotation_ce = NULL;
5050

51+
ZEND_BEGIN_ARG_INFO_EX(arginfo_void, 0, 0, 0)
52+
ZEND_END_ARG_INFO();
53+
5154
/**
5255
* Fetch the annotation description
5356
*
@@ -101,9 +104,9 @@ static PHP_METHOD(OpenCensusTraceAnnotation, options) {
101104

102105
/* Declare method entries for the OpenCensus\Trace\Ext\Annotation class */
103106
static zend_function_entry opencensus_trace_annotation_methods[] = {
104-
PHP_ME(OpenCensusTraceAnnotation, description, NULL, ZEND_ACC_PUBLIC)
105-
PHP_ME(OpenCensusTraceAnnotation, time, NULL, ZEND_ACC_PUBLIC)
106-
PHP_ME(OpenCensusTraceAnnotation, options, NULL, ZEND_ACC_PUBLIC)
107+
PHP_ME(OpenCensusTraceAnnotation, description, arginfo_void, ZEND_ACC_PUBLIC)
108+
PHP_ME(OpenCensusTraceAnnotation, time, arginfo_void, ZEND_ACC_PUBLIC)
109+
PHP_ME(OpenCensusTraceAnnotation, options, arginfo_void, ZEND_ACC_PUBLIC)
107110
PHP_FE_END
108111
};
109112

ext/opencensus_trace_context.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_OpenCensusTraceContext_construct, 0, 0, 1)
5151
ZEND_ARG_ARRAY_INFO(0, contextOptions, 0)
5252
ZEND_END_ARG_INFO();
5353

54+
ZEND_BEGIN_ARG_INFO_EX(arginfo_void, 0, 0, 0)
55+
ZEND_END_ARG_INFO();
56+
5457
/**
5558
* Initializer for OpenCensus\Trace\SpanContext
5659
*
@@ -107,8 +110,8 @@ static PHP_METHOD(OpenCensusTraceContext, traceId) {
107110
/* Declare method entries for the OpenCensus\Trace\SpanContext class */
108111
static zend_function_entry opencensus_trace_context_methods[] = {
109112
PHP_ME(OpenCensusTraceContext, __construct, arginfo_OpenCensusTraceContext_construct, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
110-
PHP_ME(OpenCensusTraceContext, spanId, NULL, ZEND_ACC_PUBLIC)
111-
PHP_ME(OpenCensusTraceContext, traceId, NULL, ZEND_ACC_PUBLIC)
113+
PHP_ME(OpenCensusTraceContext, spanId, arginfo_void, ZEND_ACC_PUBLIC)
114+
PHP_ME(OpenCensusTraceContext, traceId, arginfo_void, ZEND_ACC_PUBLIC)
112115
PHP_FE_END
113116
};
114117

ext/opencensus_trace_link.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848

4949
zend_class_entry* opencensus_trace_link_ce = NULL;
5050

51+
ZEND_BEGIN_ARG_INFO_EX(arginfo_void, 0, 0, 0)
52+
ZEND_END_ARG_INFO();
53+
5154
/**
5255
* Fetch the link traceId
5356
*
@@ -101,9 +104,9 @@ static PHP_METHOD(OpenCensusTraceLink, options) {
101104

102105
/* Declare method entries for the OpenCensus\Trace\Ext\Link class */
103106
static zend_function_entry opencensus_trace_link_methods[] = {
104-
PHP_ME(OpenCensusTraceLink, traceId, NULL, ZEND_ACC_PUBLIC)
105-
PHP_ME(OpenCensusTraceLink, spanId, NULL, ZEND_ACC_PUBLIC)
106-
PHP_ME(OpenCensusTraceLink, options, NULL, ZEND_ACC_PUBLIC)
107+
PHP_ME(OpenCensusTraceLink, traceId, arginfo_void, ZEND_ACC_PUBLIC)
108+
PHP_ME(OpenCensusTraceLink, spanId, arginfo_void, ZEND_ACC_PUBLIC)
109+
PHP_ME(OpenCensusTraceLink, options, arginfo_void, ZEND_ACC_PUBLIC)
107110
PHP_FE_END
108111
};
109112

ext/opencensus_trace_message_event.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454

5555
zend_class_entry* opencensus_trace_message_event_ce = NULL;
5656

57+
ZEND_BEGIN_ARG_INFO_EX(arginfo_void, 0, 0, 0)
58+
ZEND_END_ARG_INFO();
59+
5760
/**
5861
* Fetch the message_event type
5962
*
@@ -124,10 +127,10 @@ static PHP_METHOD(OpenCensusTraceMessageEvent, options) {
124127

125128
/* Declare method entries for the OpenCensus\Trace\Ext\MessageEvent class */
126129
static zend_function_entry opencensus_trace_message_event_methods[] = {
127-
PHP_ME(OpenCensusTraceMessageEvent, type, NULL, ZEND_ACC_PUBLIC)
128-
PHP_ME(OpenCensusTraceMessageEvent, id, NULL, ZEND_ACC_PUBLIC)
129-
PHP_ME(OpenCensusTraceMessageEvent, time, NULL, ZEND_ACC_PUBLIC)
130-
PHP_ME(OpenCensusTraceMessageEvent, options, NULL, ZEND_ACC_PUBLIC)
130+
PHP_ME(OpenCensusTraceMessageEvent, type, arginfo_void, ZEND_ACC_PUBLIC)
131+
PHP_ME(OpenCensusTraceMessageEvent, id, arginfo_void, ZEND_ACC_PUBLIC)
132+
PHP_ME(OpenCensusTraceMessageEvent, time, arginfo_void, ZEND_ACC_PUBLIC)
133+
PHP_ME(OpenCensusTraceMessageEvent, options, arginfo_void, ZEND_ACC_PUBLIC)
131134
PHP_FE_END
132135
};
133136

0 commit comments

Comments
 (0)