@@ -598,9 +598,6 @@ void nr_php_show_exec(const char* context, NR_EXECUTE_PROTO TSRMLS_DC) {
598
598
const char * filename = nr_php_op_array_file_name (NR_OP_ARRAY );
599
599
const char * function_name = nr_php_op_array_function_name (NR_OP_ARRAY );
600
600
const char * ctx = context ? context : "execute" ;
601
- #if ZEND_MODULE_API_NO >= ZEND_7_4_X_API_NO
602
- nruserfn_t * wr = nr_php_get_wraprec (execute_data -> func );
603
- #endif
604
601
argstr [0 ] = '\0' ;
605
602
606
603
if (NR_OP_ARRAY -> scope ) {
@@ -624,7 +621,7 @@ void nr_php_show_exec(const char* context, NR_EXECUTE_PROTO TSRMLS_DC) {
624
621
#if ZEND_MODULE_API_NO < ZEND_7_4_X_API_NO
625
622
nr_php_op_array_get_wraprec (NR_OP_ARRAY TSRMLS_CC ) ? " *" : "" ,
626
623
#else
627
- wr ? " *" : "" ,
624
+ nr_php_get_wraprec ( execute_data -> func ) ? " *" : "" ,
628
625
#endif
629
626
NRP_FILENAME (filename ), NR_OP_ARRAY -> line_start );
630
627
} else if (NR_OP_ARRAY -> function_name ) {
@@ -646,7 +643,7 @@ void nr_php_show_exec(const char* context, NR_EXECUTE_PROTO TSRMLS_DC) {
646
643
#if ZEND_MODULE_API_NO < ZEND_7_4_X_API_NO
647
644
nr_php_op_array_get_wraprec (NR_OP_ARRAY TSRMLS_CC ) ? " *" : "" ,
648
645
#else
649
- wr ? " *" : "" ,
646
+ nr_php_get_wraprec ( execute_data -> func ) ? " *" : "" ,
650
647
#endif
651
648
NRP_FILENAME (filename ), NR_OP_ARRAY -> line_start );
652
649
} else if (NR_OP_ARRAY -> filename ) {
0 commit comments