mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- Fixed format string according to data type
This commit is contained in:
parent
f4db0669d0
commit
94cc258715
1 changed files with 4 additions and 4 deletions
|
@ -457,7 +457,7 @@ PHPDBG_COMMAND(frame) /* {{{ */
|
|||
break;
|
||||
|
||||
case EMPTY_PARAM:
|
||||
phpdbg_notice("Currently at frame %d:", PHPDBG_G(frame).num);
|
||||
phpdbg_notice("Currently at frame %ld:", PHPDBG_G(frame).num);
|
||||
break;
|
||||
|
||||
phpdbg_default_switch_case();
|
||||
|
@ -509,7 +509,7 @@ static inline void phpdbg_handle_exception(TSRMLS_D) /* }}} */
|
|||
|
||||
/* output useful information about address */
|
||||
phpdbg_writeln(
|
||||
"Stacked entered at %p in %s on line %lu",
|
||||
"Stacked entered at %p in %s on line %u",
|
||||
EG(active_op_array)->opcodes, filename, lineno);
|
||||
|
||||
zval_dtor(&fname);
|
||||
|
@ -651,7 +651,7 @@ PHPDBG_COMMAND(back) /* {{{ */
|
|||
zend_hash_move_forward_ex(Z_ARRVAL(zbacktrace), &position);
|
||||
if (zend_hash_get_current_data_ex(Z_ARRVAL(zbacktrace), (void**)&tmp, &position) == FAILURE) {
|
||||
phpdbg_write(
|
||||
"frame #%d: {main} at %s:%d",
|
||||
"frame #%d: {main} at %s:%ld",
|
||||
i, Z_STRVAL_PP(file), Z_LVAL_PP(line));
|
||||
break;
|
||||
}
|
||||
|
@ -684,7 +684,7 @@ PHPDBG_COMMAND(back) /* {{{ */
|
|||
}
|
||||
}
|
||||
|
||||
phpdbg_writeln(") at %s:%d", Z_STRVAL_PP(file), Z_LVAL_PP(line));
|
||||
phpdbg_writeln(") at %s:%ld", Z_STRVAL_PP(file), Z_LVAL_PP(line));
|
||||
}
|
||||
|
||||
phpdbg_writeln(EMPTY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue