@@ -2134,7 +2134,7 @@ static void nr_php_instrument_func_end(NR_EXECUTE_PROTO, bool create_metric, boo
2134
2134
"Uncaught exception " , & NRPRG (exception_filters ) TSRMLS_CC );
2135
2135
} else if (NULL == nr_php_get_return_value (NR_EXECUTE_ORIG_ARGS )) {
2136
2136
#else
2137
- if (NULL == nr_php_get_return_value ( NR_EXECUTE_ORIG_ARGS ) ) {
2137
+ if (NULL == func_return_value ) {
2138
2138
#endif
2139
2139
/*
2140
2140
* Having no return value (and not being an exception handler) indicates
@@ -2146,6 +2146,9 @@ static void nr_php_instrument_func_end(NR_EXECUTE_PROTO, bool create_metric, boo
2146
2146
nr_status_t status = nr_php_error_record_exception_segment (
2147
2147
NRPRG (txn ), & exception ,
2148
2148
& NRPRG (exception_filters ));
2149
+ if (execute_data -> func && execute_data -> func -> common .function_name ) {
2150
+ nrl_verbosedebug (NRL_AGENT , "END %s" , ZSTR_VAL (execute_data -> func -> common .function_name ));
2151
+ }
2149
2152
2150
2153
if (NR_FAILURE == status ) {
2151
2154
nrl_verbosedebug (NRL_AGENT , "%s: unable to record exception on segment" ,
@@ -2230,6 +2233,9 @@ void nr_php_observer_fcall_begin(zend_execute_data* execute_data) {
2230
2233
//if (execute_data->func && execute_data->func->common.function_name) {
2231
2234
// printf("BEGIN %s\n", ZSTR_VAL(execute_data->func->common.function_name));
2232
2235
//}
2236
+ if (execute_data -> func && execute_data -> func -> common .function_name ) {
2237
+ nrl_verbosedebug (NRL_AGENT , "BEGIN %s" , ZSTR_VAL (execute_data -> func -> common .function_name ));
2238
+ }
2233
2239
if (nrunlikely (NULL == execute_data )) {
2234
2240
return ;
2235
2241
}
@@ -2272,7 +2278,7 @@ void nr_php_observer_fcall_begin_instrumented(zend_execute_data* execute_data) {
2272
2278
*/
2273
2279
zval * func_return_value = NULL ;
2274
2280
//if (execute_data->func && execute_data->func->common.function_name) {
2275
- // printf( "BEGIN %s\n ", ZSTR_VAL(execute_data->func->common.function_name));
2281
+ // nrl_verbosedebug(NRL_AGENT, "BEGIN %s", ZSTR_VAL(execute_data->func->common.function_name));
2276
2282
//}
2277
2283
if (nrunlikely (NULL == execute_data )) {
2278
2284
return ;
0 commit comments