We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-1
namestrlen
1 parent 75e2253 commit b457827Copy full SHA for b457827
agent/tests/test_user_instrument.c
@@ -155,6 +155,10 @@ static void test_add_custom_tracer_named() {
155
wr = nr_php_add_custom_tracer_named("function_name", 0);
156
tlib_pass_if_null("add_custom_tracer_named with length == 0", wr);
157
158
+ // nr_php_add_custom_tracer_named's second argument is of size_t type,
159
+ // which is **unsigned**!!! However, under the hood, it calls a function
160
+ // that converts it to an int! So this is testing that no unwanted
161
+ // side effects will happen when this silent type conversion takes place.
162
wr = nr_php_add_custom_tracer_named("function_name", -1);
163
tlib_pass_if_null("add_custom_tracer_named with length < 0", wr);
164
0 commit comments