@@ -645,17 +645,14 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
645
645
ZEND_HASH_FOREACH_STR_KEY_VAL (Z_ARRVAL_P (hook_implementation_map ), hook_key ,
646
646
hook_val ) {
647
647
if ((NULL == hook_key ) || (0 == nr_php_is_zval_valid_array (hook_val ))) {
648
- nrl_warning (NRL_FRAMEWORK ,
649
- "hookImplementationsMap[hook = %s]: invalid value" ,
650
- NRSAFESTR (ZEND_STRING_VALUE (hook_key )));
648
+ nrl_warning (NRL_FRAMEWORK , "hookImplementationsMap[hook]: invalid value" );
651
649
return false;
652
650
}
653
651
654
652
ZEND_HASH_FOREACH_STR_KEY_VAL (Z_ARRVAL_P (hook_val ), class_key , class_val ) {
655
653
if ((NULL == class_key ) || (0 == nr_php_is_zval_valid_array (class_val ))) {
656
654
nrl_warning (NRL_FRAMEWORK ,
657
- "hookImplementationsMap[class = %s]: invalid value" ,
658
- NRSAFESTR (ZEND_STRING_VALUE (class_key )));
655
+ "hookImplementationsMap[class]: invalid value" );
659
656
return false;
660
657
}
661
658
@@ -664,8 +661,7 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
664
661
if ((NULL == method_key )
665
662
|| (0 == nr_php_is_zval_valid_string (module_val ))) {
666
663
nrl_warning (NRL_FRAMEWORK ,
667
- "hookImplementationsMap[method = %s]: invalid value" ,
668
- NRSAFESTR (ZEND_STRING_VALUE (method_key )));
664
+ "hookImplementationsMap[method]: invalid value" );
669
665
return false;
670
666
}
671
667
0 commit comments