com php-src: Make IS_TMP_VAR and IS_VAR differentia ble: sapi/phpdbg/phpdbg_opcode.c

From: Date: Thu, 23 Jul 2015 03:36:46 +0000
Subject: com php-src: Make IS_TMP_VAR and IS_VAR differentia ble: sapi/phpdbg/phpdbg_opcode.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88126@lists.php.net to get a copy of this message
Commit: 3fe35ba80db1cdf08ef5720dafab5e21478abf56 Author: Xinchen Hui <laruence@php.net> Thu, 23 Jul 2015 11:36:46 +0800 Parents: 0a5bbbdc92fe6030df30962c370df5b1bc18a72a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3fe35ba80db1cdf08ef5720dafab5e21478abf56 Log: Make IS_TMP_VAR and IS_VAR differentiable Changed paths: M sapi/phpdbg/phpdbg_opcode.c Diff: diff --git a/sapi/phpdbg/phpdbg_opcode.c b/sapi/phpdbg/phpdbg_opcode.c index b8a0dfe..4361872 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);

« previous php.cvs (#88126) next »