File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,13 @@ nruserfn_t* nr_php_user_wraprec_create(void) {
353
353
}
354
354
355
355
#if ZEND_MODULE_API_NO < ZEND_8_0_X_API_NO
356
+
357
+ /* This function expects full_name and full_name_len to be validated with
358
+ * nr_php_user_instrument_is_name_valid() before being passed in.
359
+ * Specifically, it requires that:
360
+ * - full_name_len be greater than 0
361
+ * - full_name must not be NULL and must not end with `:` (colon) . */
362
+
356
363
static nruserfn_t * nr_php_user_wraprec_create_named (const char * full_name ,
357
364
int full_name_len ) {
358
365
int i ;
Original file line number Diff line number Diff line change @@ -393,6 +393,12 @@ nr_status_t nr_php_user_instrument_wraprec_hashmap_init(void) {
393
393
return NR_SUCCESS ;
394
394
}
395
395
396
+ /* This function expects namestr and namestrlen to be validated with
397
+ * nr_php_user_instrument_is_name_valid() before being passed in.
398
+ * Specifically, it requires that:
399
+ * - namestrlen be greater than 0
400
+ * - namestr must not be NULL and must not end with `:` (colon) . */
401
+
396
402
nruserfn_t * nr_php_user_instrument_wraprec_hashmap_add (const char * namestr , size_t namestrlen ) {
397
403
nr_scope_hashmap_key_t scope_key = {0 };
398
404
nr_func_hashmap_key_t func_key = {0 };
You can’t perform that action at this time.
0 commit comments