Skip to content

Commit 398764e

Browse files
committed
Remove superfluous code
1 parent c62694d commit 398764e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/develop/stack.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -421,16 +421,10 @@ static void zval_from_stack_add_frame_variables(zval *frame, zend_execute_data *
421421

422422
add_assoc_zval_ex(frame, "variables", HASH_KEY_SIZEOF("variables"), &variables);
423423

424-
xdebug_lib_set_active_data(edata);
425-
xdebug_lib_set_active_symbol_table(symbols);
426-
427424
for (j = 0; j < ZEND_CALL_NUM_ARGS(edata); j++) {
428-
xdebug_str *symbol_name;
429425
zval *symbol = NULL;
430426

431-
symbol_name = xdebug_str_create_from_char(opa->vars[j]->val);
432-
symbol = ZEND_CALL_VAR_NUM(xdebug_lib_get_active_data(), j);
433-
xdebug_str_free(symbol_name);
427+
symbol = ZEND_CALL_VAR_NUM(edata, j);
434428

435429
if (Z_TYPE_P(symbol) == IS_UNDEF) {
436430
add_assoc_null_ex(&variables, opa->vars[j]->val, opa->vars[j]->len);

0 commit comments

Comments
 (0)