summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_frame.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-02-18 18:10:54 +0400
committerDmitry Stogov <dmitry@zend.com>2014-02-18 18:10:54 +0400
commitbb58ea348ca2c49a00417c75cc6cd64b5734a885 (patch)
treef37000edaa61a872989429601da15bfa14feee27 /sapi/phpdbg/phpdbg_frame.c
parent9e6c0c6a89e8b48042283fc42c9dc6f70cc41a44 (diff)
downloadphp-git-bb58ea348ca2c49a00417c75cc6cd64b5734a885.tar.gz
Use better data structures (incomplete)
Diffstat (limited to 'sapi/phpdbg/phpdbg_frame.c')
-rw-r--r--sapi/phpdbg/phpdbg_frame.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sapi/phpdbg/phpdbg_frame.c b/sapi/phpdbg/phpdbg_frame.c
index 036bd3cea8..133eaff1ab 100644
--- a/sapi/phpdbg/phpdbg_frame.c
+++ b/sapi/phpdbg/phpdbg_frame.c
@@ -40,9 +40,9 @@ void phpdbg_restore_frame(TSRMLS_D) /* {{{ */
EG(opline_ptr) = &PHPDBG_EX(opline);
EG(active_op_array) = PHPDBG_EX(op_array);
EG(active_symbol_table) = PHPDBG_EX(symbol_table);
- //!!!EG(This) = PHPDBG_EX(current_this);
- //!!!EG(scope) = PHPDBG_EX(current_scope);
- //!!!EG(called_scope) = PHPDBG_EX(current_called_scope);
+ ZVAL_COPY_VALUE(&EG(This), &PHPDBG_EX(current_this));
+ EG(scope) = PHPDBG_EX(current_scope);
+ EG(called_scope) = PHPDBG_EX(current_called_scope);
} /* }}} */
void phpdbg_switch_frame(int frame TSRMLS_DC) /* {{{ */
@@ -82,9 +82,9 @@ void phpdbg_switch_frame(int frame TSRMLS_DC) /* {{{ */
EG(opline_ptr) = &PHPDBG_EX(opline);
EG(active_op_array) = PHPDBG_EX(op_array);
EG(active_symbol_table) = PHPDBG_EX(symbol_table);
- //!!!EG(This) = PHPDBG_EX(current_this);
- //!!!EG(scope) = PHPDBG_EX(current_scope);
- //!!!EG(called_scope) = PHPDBG_EX(current_called_scope);
+ ZVAL_COPY_VALUE(&EG(This), &PHPDBG_EX(current_this));
+ EG(scope) = PHPDBG_EX(current_scope);
+ EG(called_scope) = PHPDBG_EX(current_called_scope);
}
phpdbg_notice("Switched to frame #%d", frame);