summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_opcode.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-07-23 11:36:46 +0800
committerXinchen Hui <laruence@php.net>2015-07-23 11:36:46 +0800
commit3fe35ba80db1cdf08ef5720dafab5e21478abf56 (patch)
tree8f0997d1506ec9cc9aa236fd60068ed05a22a065 /sapi/phpdbg/phpdbg_opcode.c
parent0a5bbbdc92fe6030df30962c370df5b1bc18a72a (diff)
downloadphp-git-3fe35ba80db1cdf08ef5720dafab5e21478abf56.tar.gz
Make IS_TMP_VAR and IS_VAR differentiable
Diffstat (limited to 'sapi/phpdbg/phpdbg_opcode.c')
-rw-r--r--sapi/phpdbg/phpdbg_opcode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sapi/phpdbg/phpdbg_opcode.c b/sapi/phpdbg/phpdbg_opcode.c
index b8a0dfebba..4361872a79 100644
--- a/sapi/phpdbg/phpdbg_opcode.c
+++ b/sapi/phpdbg/phpdbg_opcode.c
@@ -49,9 +49,11 @@ static inline char *phpdbg_decode_op(zend_op_array *ops, znode_op *op, uint32_t
} break;
case IS_VAR:
- case IS_TMP_VAR: {
spprintf(&decode, 0, "@%td", EX_VAR_TO_NUM(op->var) - ops->last_var);
- } break;
+ break;
+ case IS_TMP_VAR:
+ spprintf(&decode, 0, "~%td", EX_VAR_TO_NUM(op->var) - ops->last_var);
+ break;
case IS_CONST: {
zval *literal = RT_CONSTANT(ops, *op);
decode = phpdbg_short_zval_print(literal, 20);