We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7da8ebd commit b1d3f50Copy full SHA for b1d3f50
Zend/zend_exceptions.c
@@ -638,11 +638,9 @@ ZEND_API zend_string *zend_trace_current_function_args_string(void) {
638
return NULL; /* don't need to free */
639
}
640
first_frame = zend_hash_index_find(Z_ARRVAL(backtrace), 0);
641
- if (!first_frame) {
642
- goto free_backtrace;
+ if (first_frame) {
+ dynamic_params = zend_trace_function_args_to_string(Z_ARRVAL_P(first_frame));
643
644
- dynamic_params = zend_trace_function_args_to_string(Z_ARRVAL_P(first_frame));
645
-free_backtrace:
646
zval_ptr_dtor(&backtrace);
647
/* free the string after we use it */
648
return dynamic_params;
0 commit comments