Skip to content

Commit

Permalink
Fixed issue #2232: Segfault when ddtrace throws an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Jan 8, 2024
1 parent f0d27b0 commit aa593aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/develop/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ static void zval_from_stack_add_frame(zval *output, function_stack_entry *fse, z

zval_from_stack_add_frame_parameters(frame, fse, params_as_values);

if (add_local_vars && fse->op_array && fse->op_array->vars) {
if (add_local_vars && fse->op_array && ZEND_USER_CODE(fse->op_array->type) && fse->op_array->vars) {
zval_from_stack_add_frame_variables(frame, edata, fse->symbol_table, fse->op_array);
}

Expand Down

0 comments on commit aa593aa

Please sign in to comment.