com php-src: - Reset frame num here: phpdbg_prompt.c

From: Date: Fri, 22 Nov 2013 22:15:04 +0000
Subject: com php-src: - Reset frame num here: phpdbg_prompt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74705@lists.php.net to get a copy of this message
Commit: 7a6ed70552ec40dcc6d5469d3b34d68f2e783c4c Author: Felipe Pena <felipensp@gmail.com> Fri, 22 Nov 2013 20:15:04 -0200 Parents: 94ecb5a75f9bb0d2cedded28e0bb8a4b92916e86 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7a6ed70552ec40dcc6d5469d3b34d68f2e783c4c Log: - Reset frame num here Changed paths: M phpdbg_prompt.c Diff: diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 53c6bb2..500f532 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -571,6 +571,7 @@ PHPDBG_COMMAND(run) /* {{{ */ } out: + PHPDBG_FRAME(num) = 0; return SUCCESS; } /* }}} */ @@ -658,8 +659,8 @@ PHPDBG_COMMAND(back) /* {{{ */ func = emalloc(funcsize + 2); phpdbg_write( - "frame #%d: %s%s%s(", - i++, Z_STRVAL_PP(funcname), + "frame #%d: %s%s%s(", + i++, Z_STRVAL_PP(funcname), 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) { @@ -1095,11 +1096,11 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */ { int ret = SUCCESS; phpdbg_input_t *input; - + PHPDBG_G(flags) |= PHPDBG_IS_INTERACTIVE; input = phpdbg_read_input(NULL TSRMLS_CC); - + if (input && input->length > 0L) { do { switch (ret = phpdbg_do_cmd(phpdbg_prompt_commands, input TSRMLS_CC)) {

« previous php.cvs (#74705) next »