diff options
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index d8180c9bee..59dea8664b 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -5851,6 +5851,7 @@ static void zend_begin_func_decl(znode *result, zend_op_array *op_array, zend_as if (op_array->fn_flags & ZEND_ACC_CLOSURE) { opline = zend_emit_op_tmp(result, ZEND_DECLARE_LAMBDA_FUNCTION, NULL, NULL); + opline->extended_value = zend_alloc_cache_slot(); opline->op1_type = IS_CONST; LITERAL_STR(opline->op1, key); } else { @@ -6470,6 +6471,7 @@ zend_op *zend_compile_class_decl(zend_ast *ast, zend_bool toplevel) /* {{{ */ if (decl->flags & ZEND_ACC_ANON_CLASS) { opline->opcode = ZEND_DECLARE_ANON_CLASS; + opline->extended_value = zend_alloc_cache_slot(); opline->result_type = IS_VAR; opline->result.var = get_temporary_variable(); |