@@ -98,7 +98,7 @@ static zend_observer_fcall_handlers nr_php_fcall_register_handlers(
98
98
return handlers ;
99
99
}
100
100
101
- if (OP_ARRAY_IS_A_METHOD (& execute_data -> func -> op_array )) {
101
+ if (OP_ARRAY_IS_A_METHOD (NR_OP_ARRAY )) {
102
102
scope_name = execute_data -> func -> op_array .scope -> name ;
103
103
func_name = execute_data -> func -> op_array .function_name ;
104
104
#if 0
@@ -108,21 +108,21 @@ static zend_observer_fcall_handlers nr_php_fcall_register_handlers(
108
108
ZSTR_VAL (scope_name ), scope_name -> h , cn_hash ,
109
109
ZSTR_VAL (func_name ), func_name -> h , fn_hash );
110
110
#endif
111
- } else if (OP_ARRAY_IS_A_FUNCTION (& execute_data -> func -> op_array )){
111
+ } else if (OP_ARRAY_IS_A_FUNCTION (NR_OP_ARRAY )){
112
112
func_name = execute_data -> func -> op_array .function_name ;
113
113
#if 0
114
114
zend_long fn_hash = zend_hash_func (ZSTR_VAL (func_name ), ZSTR_LEN (func_name ));
115
115
nrl_always ("function_name=%s, function_name->h=%zu, fn_hash=%zu" , ZSTR_VAL (func_name ), func_name -> h , fn_hash );
116
116
#endif
117
117
}
118
118
119
- if (!ZEND_OP_ARRAY_EXTENSION (& execute_data -> func -> op_array , NR_PHP_PROCESS_GLOBALS (op_array_extension_handle ))) {
119
+ if (!ZEND_OP_ARRAY_EXTENSION (NR_OP_ARRAY , NR_PHP_PROCESS_GLOBALS (op_array_extension_handle ))) {
120
120
// nrl_always("wraprec not installed yet");
121
121
wr = nr_php_user_instrument_wraprec_hashmap_get (func_name , scope_name );
122
122
// nrl_always("found wraprec=%p", wr);
123
123
124
124
// store the wraprec in the op_array extension for the duration of the request for later lookup
125
- ZEND_OP_ARRAY_EXTENSION (& execute_data -> func -> op_array , NR_PHP_PROCESS_GLOBALS (op_array_extension_handle )) = wr ;
125
+ ZEND_OP_ARRAY_EXTENSION (NR_OP_ARRAY , NR_PHP_PROCESS_GLOBALS (op_array_extension_handle )) = wr ;
126
126
}
127
127
// else {
128
128
// nrl_always("wraprec already installed");
0 commit comments