Skip to content

Commit 05c5e5d

Browse files
committed
Fixed bug #78512 (Cannot make preload work)
1 parent 3d55386 commit 05c5e5d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ PHP NEWS
1212
. Fixed bug #74083 (master PHP-fpm is stopped on multiple reloads).
1313
(Maksim Nikulin)
1414

15+
-Opcache:
16+
. Fixed bug #78512 (Cannot make preload work). (Dmitry)
17+
1518
- Reflection:
1619
. Fixed bug #78697 (ReflectionClass::implementsInterface - inaccurate error
1720
message with traits). (villfa)

ext/opcache/ZendAccelerator.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4565,6 +4565,11 @@ static int accel_finish_startup(void)
45654565
zend_accel_error(ACCEL_LOG_FATAL, "Preloading failed to waitpid(%d)", pid);
45664566
return FAILURE;
45674567
}
4568+
4569+
if (ZCSG(preload_script)) {
4570+
preload_load();
4571+
}
4572+
45684573
zend_shared_alloc_unlock();
45694574
if (WIFEXITED(status) && WEXITSTATUS(status) == 0) {
45704575
return SUCCESS;

0 commit comments

Comments
 (0)