mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
- Reset frame num here
This commit is contained in:
parent
94ecb5a75f
commit
7a6ed70552
1 changed files with 5 additions and 4 deletions
|
@ -571,6 +571,7 @@ PHPDBG_COMMAND(run) /* {{{ */
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
PHPDBG_FRAME(num) = 0;
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
@ -658,8 +659,8 @@ PHPDBG_COMMAND(back) /* {{{ */
|
||||||
|
|
||||||
func = emalloc(funcsize + 2);
|
func = emalloc(funcsize + 2);
|
||||||
phpdbg_write(
|
phpdbg_write(
|
||||||
"frame #%d: %s%s%s(",
|
"frame #%d: %s%s%s(",
|
||||||
i++, Z_STRVAL_PP(funcname),
|
i++, Z_STRVAL_PP(funcname),
|
||||||
is_class == FAILURE?"":Z_STRVAL_PP(type), is_class == FAILURE?"":Z_STRVAL_PP(class));
|
is_class == FAILURE?"":Z_STRVAL_PP(type), is_class == FAILURE?"":Z_STRVAL_PP(class));
|
||||||
|
|
||||||
if (zend_hash_find(Z_ARRVAL_PP(tmp), "args", sizeof("args"), (void **)&args) == SUCCESS) {
|
if (zend_hash_find(Z_ARRVAL_PP(tmp), "args", sizeof("args"), (void **)&args) == SUCCESS) {
|
||||||
|
@ -1095,11 +1096,11 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */
|
||||||
{
|
{
|
||||||
int ret = SUCCESS;
|
int ret = SUCCESS;
|
||||||
phpdbg_input_t *input;
|
phpdbg_input_t *input;
|
||||||
|
|
||||||
PHPDBG_G(flags) |= PHPDBG_IS_INTERACTIVE;
|
PHPDBG_G(flags) |= PHPDBG_IS_INTERACTIVE;
|
||||||
|
|
||||||
input = phpdbg_read_input(NULL TSRMLS_CC);
|
input = phpdbg_read_input(NULL TSRMLS_CC);
|
||||||
|
|
||||||
if (input && input->length > 0L) {
|
if (input && input->length > 0L) {
|
||||||
do {
|
do {
|
||||||
switch (ret = phpdbg_do_cmd(phpdbg_prompt_commands, input TSRMLS_CC)) {
|
switch (ret = phpdbg_do_cmd(phpdbg_prompt_commands, input TSRMLS_CC)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue