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:
@@ -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) {
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user