mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-29 03:45:43 +00:00
Make ZEND_ECHO and removed ZEND_PRINT distinguishable
This commit is contained in:
1 parent
d4e1c17049
commit
88e147441d
2 files changed
+10
-5
No files matched your search
+6
-2
@@ -3612,12 +3612,14 @@ void zend_compile_return(zend_ast *ast) /* {{{ */
|
||||
|
||||
void zend_compile_echo(zend_ast *ast) /* {{{ */
|
||||
{
|
||||
zend_op *opline;
|
||||
zend_ast *expr_ast = ast->child[0];
|
||||
|
||||
znode expr_node;
|
||||
zend_compile_expr(&expr_node, expr_ast);
|
||||
|
||||
zend_emit_op(NULL, ZEND_ECHO, &expr_node, NULL);
|
||||
opline = zend_emit_op(NULL, ZEND_ECHO, &expr_node, NULL);
|
||||
opline->extended_value = ZEND_ECHO;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
@@ -6214,12 +6216,14 @@ void zend_compile_coalesce(znode *result, zend_ast *ast) /* {{{ */
|
||||
|
||||
void zend_compile_print(znode *result, zend_ast *ast) /* {{{ */
|
||||
{
|
||||
zend_op *opline;
|
||||
zend_ast *expr_ast = ast->child[0];
|
||||
|
||||
znode expr_node;
|
||||
zend_compile_expr(&expr_node, expr_ast);
|
||||
|
||||
zend_emit_op(NULL, ZEND_ECHO, &expr_node, NULL);
|
||||
opline = zend_emit_op(NULL, ZEND_ECHO, &expr_node, NULL);
|
||||
opline->extended_value = ZEND_PRINT;
|
||||
|
||||
result->op_type = IS_CONST;
|
||||
ZVAL_LONG(&result->u.constant, 1);
|
||||
|
||||
+4
-3
@@ -954,9 +954,10 @@ 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_GOTO 253
|
||||
#define ZEND_BRK 254
|
||||
#define ZEND_CONT 255
|
||||
#define ZEND_PRINT 252
|
||||
#define ZEND_GOTO 253
|
||||
#define ZEND_BRK 254
|
||||
#define ZEND_CONT 255
|
||||
|
||||
|
||||
END_EXTERN_C()
|
||||
|
||||
Reference in new issue
Block a user