@@ -2126,7 +2126,7 @@ static void nr_php_instrument_func_end(NR_EXECUTE_PROTO, bool create_metric, boo
2126
2126
"Uncaught exception " , & NRPRG (exception_filters ) TSRMLS_CC );
2127
2127
} else if (NULL == nr_php_get_return_value (NR_EXECUTE_ORIG_ARGS )) {
2128
2128
#else
2129
- if (NULL == nr_php_get_return_value ( NR_EXECUTE_ORIG_ARGS ) ) {
2129
+ if (NULL == func_return_value ) {
2130
2130
#endif
2131
2131
/*
2132
2132
* Having no return value (and not being an exception handler) indicates
@@ -2138,6 +2138,9 @@ static void nr_php_instrument_func_end(NR_EXECUTE_PROTO, bool create_metric, boo
2138
2138
nr_status_t status = nr_php_error_record_exception_segment (
2139
2139
NRPRG (txn ), & exception ,
2140
2140
& NRPRG (exception_filters ));
2141
+ if (execute_data -> func && execute_data -> func -> common .function_name ) {
2142
+ nrl_verbosedebug (NRL_AGENT , "END %s" , ZSTR_VAL (execute_data -> func -> common .function_name ));
2143
+ }
2141
2144
2142
2145
if (NR_FAILURE == status ) {
2143
2146
nrl_verbosedebug (NRL_AGENT , "%s: unable to record exception on segment" ,
@@ -2222,6 +2225,9 @@ void nr_php_observer_fcall_begin(zend_execute_data* execute_data) {
2222
2225
//if (execute_data->func && execute_data->func->common.function_name) {
2223
2226
// printf("BEGIN %s\n", ZSTR_VAL(execute_data->func->common.function_name));
2224
2227
//}
2228
+ if (execute_data -> func && execute_data -> func -> common .function_name ) {
2229
+ nrl_verbosedebug (NRL_AGENT , "BEGIN %s" , ZSTR_VAL (execute_data -> func -> common .function_name ));
2230
+ }
2225
2231
if (nrunlikely (NULL == execute_data )) {
2226
2232
return ;
2227
2233
}
@@ -2264,7 +2270,7 @@ void nr_php_observer_fcall_begin_instrumented(zend_execute_data* execute_data) {
2264
2270
*/
2265
2271
zval * func_return_value = NULL ;
2266
2272
//if (execute_data->func && execute_data->func->common.function_name) {
2267
- // printf( "BEGIN %s\n ", ZSTR_VAL(execute_data->func->common.function_name));
2273
+ // nrl_verbosedebug(NRL_AGENT, "BEGIN %s", ZSTR_VAL(execute_data->func->common.function_name));
2268
2274
//}
2269
2275
if (nrunlikely (NULL == execute_data )) {
2270
2276
return ;
0 commit comments