mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Hack around global leak for now
This commit is contained in:
parent
fdc318849a
commit
b3336270f6
1 changed files with 2 additions and 4 deletions
|
@ -6914,11 +6914,9 @@ void zend_compile_global_var(zend_ast *ast TSRMLS_DC) {
|
||||||
}
|
}
|
||||||
|
|
||||||
opline = emit_op(&result, ZEND_FETCH_W, &var_node, NULL TSRMLS_CC);
|
opline = emit_op(&result, ZEND_FETCH_W, &var_node, NULL TSRMLS_CC);
|
||||||
opline->extended_value = ZEND_FETCH_GLOBAL_LOCK;
|
|
||||||
|
|
||||||
if (var_node.op_type == IS_CONST) {
|
// TODO.AST Avoid double fetch
|
||||||
//zval_copy_ctor(&var_node.u.constant);
|
//opline->extended_value = ZEND_FETCH_GLOBAL_LOCK;
|
||||||
}
|
|
||||||
|
|
||||||
zend_ast *fetch_ast = zend_ast_create_unary(ZEND_AST_VAR, var_ast);
|
zend_ast *fetch_ast = zend_ast_create_unary(ZEND_AST_VAR, var_ast);
|
||||||
zend_compile_assign_ref_common(NULL, fetch_ast, &result TSRMLS_CC);
|
zend_compile_assign_ref_common(NULL, fetch_ast, &result TSRMLS_CC);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue