Skip to content

Commit daac578

Browse files
committed
Fixed JIT of preloaded script
1 parent 2068ce9 commit daac578

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4416,6 +4416,7 @@ static int accel_preload(const char *config)
44164416
#else
44174417
init_op_array(&script->script.main_op_array, ZEND_USER_FUNCTION, 2);
44184418
#endif
4419+
script->script.main_op_array.fn_flags |= ZEND_ACC_DONE_PASS_TWO;
44194420
script->script.main_op_array.last = 1;
44204421
script->script.main_op_array.last_literal = 1;
44214422
#if ZEND_USE_ABS_CONST_ADDR

0 commit comments

Comments
 (0)