We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e788673 commit 1e981ceCopy full SHA for 1e981ce
1 file changed
Zend/zend_exceptions.c
@@ -648,11 +648,9 @@ ZEND_API zend_string *zend_trace_current_function_args_string(void) {
648
return NULL; /* don't need to free */
649
}
650
first_frame = zend_hash_index_find(Z_ARRVAL(backtrace), 0);
651
- if (!first_frame) {
652
- goto free_backtrace;
+ if (first_frame) {
+ dynamic_params = zend_trace_function_args_to_string(Z_ARRVAL_P(first_frame));
653
654
- dynamic_params = zend_trace_function_args_to_string(Z_ARRVAL_P(first_frame));
655
-free_backtrace:
656
zval_ptr_dtor(&backtrace);
657
/* free the string after we use it */
658
return dynamic_params;
0 commit comments