From: Xinchen Hui Date: Thu, 23 Jul 2015 03:36:46 +0000 (+0800) Subject: Make IS_TMP_VAR and IS_VAR differentiable X-Git-Tag: php-7.0.0beta3~5^2~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fe35ba80db1cdf08ef5720dafab5e21478abf56;p=php Make IS_TMP_VAR and IS_VAR differentiable --- 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);