Skip to content

Commit 542f341

Browse files
committed
Fix test
1 parent ceaf7e0 commit 542f341

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Zend/zend_ast.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,7 @@ static zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
13411341

13421342
zval this_ptr;
13431343
ZVAL_UNDEF(&this_ptr);
1344+
Z_PTR(this_ptr) = NULL;
13441345
void *cache_slot[2] = {0};
13451346
zend_array *extra_named_params = ZEND_CALL_INFO(frame) & ZEND_CALL_HAS_EXTRA_NAMED_PARAMS
13461347
? frame->extra_named_params

ext/standard/tests/array/array_map_foreach_optimization_007.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $_main:
3333
0005 INIT_FCALL 2 %d string("array_map")
3434
0006 INIT_FCALL 0 %d string("plusn")
3535
0007 SEND_VAL int(2) string("n")
36-
0008 T2 = CALLABLE_CONVERT_PARTIAL 2
36+
0008 T2 = CALLABLE_CONVERT_PARTIAL %d string("{closure:%s}")
3737
0009 SEND_VAL T2 1
3838
0010 SEND_VAR CV0($array) 2
3939
0011 T2 = DO_ICALL

0 commit comments

Comments
 (0)