1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 20:22:36 +02:00

- Change phpdbg_dump_backtrace prototype

This commit is contained in:
Felipe Pena
2013-12-08 16:33:19 -02:00
parent 3ec948bca3
commit e5a2d2efbd
3 changed files with 5 additions and 4 deletions

View File

@@ -100,13 +100,13 @@ void phpdbg_switch_frame(int frame TSRMLS_DC) /* {{{ */
);
} /* }}} */
void phpdbg_dump_backtrace(const phpdbg_param_t *param TSRMLS_DC) /* {{{ */
void phpdbg_dump_backtrace(size_t num TSRMLS_DC) /* {{{ */
{
zval zbacktrace;
zval **tmp, **argstmp;
zval **file, **line, **funcname, **class, **type, **args;
HashPosition position;
int i = 0, limit = (param->type == NUMERIC_PARAM) ? param->num : 0;
int i = 0, limit = num;
char is_class;
if (limit < 0) {

View File

@@ -26,6 +26,6 @@
void phpdbg_restore_frame(TSRMLS_D);
void phpdbg_switch_frame(int TSRMLS_DC);
void phpdbg_dump_backtrace(const phpdbg_param_t* TSRMLS_DC);
void phpdbg_dump_backtrace(size_t TSRMLS_DC);
#endif /* PHPDBG_FRAME_H */

View File

@@ -656,7 +656,8 @@ PHPDBG_COMMAND(back) /* {{{ */
switch (param->type) {
case EMPTY_PARAM:
case NUMERIC_PARAM:
phpdbg_dump_backtrace(param TSRMLS_CC);
phpdbg_dump_backtrace(
(param->type == NUMERIC_PARAM) ? param->num : 0 TSRMLS_CC);
break;
phpdbg_default_switch_case();