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