]> granicus.if.org Git - php/commitdiff
Simply use 0/1 instead as dmitry suggested
authorXinchen Hui <laruence@gmail.com>
Wed, 30 Sep 2015 02:41:27 +0000 (10:41 +0800)
committerXinchen Hui <laruence@gmail.com>
Wed, 30 Sep 2015 02:41:27 +0000 (10:41 +0800)
Zend/zend_compile.c
Zend/zend_compile.h

index 4886fcc57ee38632effbc1bcf719cdcd367c559f..ce3815c8649518bc9dc2da4d325659cbf76f2b31 100644 (file)
@@ -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);
index 3a0304101ae9deb060510009dbe1d82f117c5094..c29f8766e637d57f35ad221bcd1325fc35227912 100644 (file)
@@ -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