summaryrefslogtreecommitdiffstats
path: root/05c5e5dfde91955263469daa2dd5afcbb5199d17.patch
blob: 81cdc23f3c610e2fcc993cc13039c803d05b4b6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 05c5e5dfde91955263469daa2dd5afcbb5199d17 Mon Sep 17 00:00:00 2001
From: Dmitry Stogov <dmitry@zend.com>
Date: Mon, 21 Oct 2019 14:52:26 +0300
Subject: [PATCH] Fixed bug #78512 (Cannot make preload work)

---
 NEWS                          | 3 +++
 ext/opcache/ZendAccelerator.c | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 056c7739a0b6..636058dd0875 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -4565,6 +4565,11 @@ static int accel_finish_startup(void)
 					zend_accel_error(ACCEL_LOG_FATAL, "Preloading failed to waitpid(%d)", pid);
 					return FAILURE;
 				}
+
+				if (ZCSG(preload_script)) {
+					preload_load();
+				}
+
 				zend_shared_alloc_unlock();
 				if (WIFEXITED(status) && WEXITSTATUS(status) == 0) {
 					return SUCCESS;