File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -607,7 +607,9 @@ NR_PHP_WRAPPER_END
607607static bool nr_is_invalid_key_val_arr (nr_php_string_hash_key_t * key ,
608608 zval * val ,
609609 const char * key_ident ) {
610- if (NULL == key || 0 == ZEND_STRING_LEN (key )) {
610+ nrl_verbosedebug (
611+ NRL_FRAMEWORK , "hook map key: %s" ,
612+ ZEND_STRING_VALUE (key )) if (NULL == key || 0 == ZEND_STRING_LEN (key )) {
611613 nrl_warning (NRL_FRAMEWORK , "hookImplementationsMap[%s]: invalid key" ,
612614 key_ident );
613615 return true;
@@ -641,8 +643,6 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
641643 zval * class_val = NULL ;
642644 nr_php_string_hash_key_t * method_key = NULL ;
643645 zval * module_val = NULL ;
644- zval * dump = NULL ;
645- char * dumpstr = NULL ;
646646
647647 char * hookpath = NULL ;
648648
@@ -659,9 +659,6 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
659659 nrl_verbosedebug (NRL_FRAMEWORK , "failed to identify a valid hook map" );
660660 }
661661
662- dump = nr_php_call (NULL , "var_dump" , hook_implementation_map );
663- dumpstr = nr_strndup (Z_STRVAL_P (dump ), Z_STRLEN_P (dump ));
664- nrl_verbosedebug (NRL_FRAMEWORK , "HOOKLIST: %s" , dumpstr );
665662 ZEND_HASH_FOREACH_STR_KEY_VAL (Z_ARRVAL_P (hook_implementation_map ), hook_key ,
666663 hook_val ) {
667664 if (nr_is_invalid_key_val_arr (hook_key , hook_val , "hook" )) {
You can’t perform that action at this time.
0 commit comments