projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a5bbbd
)
Make IS_TMP_VAR and IS_VAR differentiable
author
Xinchen Hui
<laruence@php.net>
Thu, 23 Jul 2015 03:36:46 +0000
(11:36 +0800)
committer
Xinchen Hui
<laruence@php.net>
Thu, 23 Jul 2015 03:36:46 +0000
(11:36 +0800)
sapi/phpdbg/phpdbg_opcode.c
patch
|
blob
|
history
diff --git
a/sapi/phpdbg/phpdbg_opcode.c
b/sapi/phpdbg/phpdbg_opcode.c
index b8a0dfebba1f679adf8dab35fae77a5a7baa471d..4361872a79034dabbe46a5573938f1f782725cbb 100644
(file)
--- 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);