Make IS_TMP_VAR and IS_VAR differentiable
authorXinchen Hui <laruence@php.net>
Thu, 23 Jul 2015 03:36:46 +0000 (11:36 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 23 Jul 2015 03:36:46 +0000 (11:36 +0800)
sapi/phpdbg/phpdbg_opcode.c

index b8a0dfebba1f679adf8dab35fae77a5a7baa471d..4361872a79034dabbe46a5573938f1f782725cbb 100644 (file)
@@ -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);