Skip to content

Commit 42f4bdb

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fixed bug #78512 (Cannot make preload work)
2 parents d927b74 + 05c5e5d commit 42f4bdb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4620,6 +4620,11 @@ static int accel_finish_startup(void)
46204620
zend_accel_error(ACCEL_LOG_FATAL, "Preloading failed to waitpid(%d)", pid);
46214621
return FAILURE;
46224622
}
4623+
4624+
if (ZCSG(preload_script)) {
4625+
preload_load();
4626+
}
4627+
46234628
zend_shared_alloc_unlock();
46244629
if (WIFEXITED(status) && WEXITSTATUS(status) == 0) {
46254630
return SUCCESS;

0 commit comments

Comments
 (0)