com php-src: Simply use 0/1 instead as dmitry suggested: Zend/zend_compile.c Zend/zend_compile.h

From: Date: Wed, 30 Sep 2015 02:41:27 +0000
Subject: com php-src: Simply use 0/1 instead as dmitry suggested: Zend/zend_compile.c Zend/zend_compile.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89231@lists.php.net to get a copy of this message
Commit: 45cb42f49f1f1e73eaa7ca7ae559b02ac8725361 Author: Xinchen Hui <laruence@gmail.com> Wed, 30 Sep 2015 10:41:27 +0800 Parents: df2ff75116dc96d542aa7631028b09954faa4fea Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=45cb42f49f1f1e73eaa7ca7ae559b02ac8725361 Log: Simply use 0/1 instead as dmitry suggested Changed paths: M Zend/zend_compile.c M Zend/zend_compile.h Diff: diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 4886fcc..ce3815c 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -3619,7 +3619,7 @@ void zend_compile_echo(zend_ast *ast) /* {{{ */ zend_compile_expr(&expr_node, expr_ast); opline = zend_emit_op(NULL, ZEND_ECHO, &expr_node, NULL); - opline->extended_value = ZEND_ECHO; + opline->extended_value = 0; } /* }}} */ @@ -6223,7 +6223,7 @@ void zend_compile_print(znode *result, zend_ast *ast) /* {{{ */ zend_compile_expr(&expr_node, expr_ast); opline = zend_emit_op(NULL, ZEND_ECHO, &expr_node, NULL); - opline->extended_value = ZEND_PRINT; + opline->extended_value = 1; result->op_type = IS_CONST; ZVAL_LONG(&result->u.constant, 1); diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 3a03041..c29f876 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -954,7 +954,6 @@ static zend_always_inline int zend_check_arg_send_type(const zend_function *zf, #define ZEND_ARRAY_SIZE_SHIFT 2 /* Pseudo-opcodes that are used only temporarily during compilation */ -#define ZEND_PRINT 252 #define ZEND_GOTO 253 #define ZEND_BRK 254 #define ZEND_CONT 255

« previous php.cvs (#89231) next »