diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2013-11-24 22:30:48 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2013-11-24 22:30:48 +0100 |
commit | ce05e41c14c5a05187035a3b94af9c14723880d3 (patch) | |
tree | 73ffef009233f62756f3732440707bfdd0c05102 /phpdbg_prompt.c | |
parent | c41ef19c3b5365cab87fa0d9d871fc5328316fd5 (diff) | |
download | php-git-ce05e41c14c5a05187035a3b94af9c14723880d3.tar.gz |
Fixed backtrace class<->method order
Diffstat (limited to 'phpdbg_prompt.c')
-rw-r--r-- | phpdbg_prompt.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index ac95e69977..3de27f786a 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -662,14 +662,17 @@ PHPDBG_COMMAND(back) /* {{{ */ } else { zend_get_object_classname(*class, (const char **)&Z_STRVAL_PP(class), (zend_uint *)&Z_STRLEN_PP(class) TSRMLS_CC); } - if (is_class) { + if (is_class == SUCCESS) { zend_hash_find(Z_ARRVAL_PP(tmp), "type", sizeof("type"), (void **)&type); } phpdbg_write( "frame #%d: %s%s%s(", - i++, Z_STRVAL_PP(funcname), - is_class == FAILURE?"":Z_STRVAL_PP(type), is_class == FAILURE?"":Z_STRVAL_PP(class)); + i++, + is_class == FAILURE?"":Z_STRVAL_PP(class), + is_class == FAILURE?"":Z_STRVAL_PP(type), + Z_STRVAL_PP(funcname) + ); if (zend_hash_find(Z_ARRVAL_PP(tmp), "args", sizeof("args"), (void **)&args) == SUCCESS) { HashPosition iterator; |