com php-src: Fixed bug #78512 (Cannot make preload work): NEWS ext/opcache/ZendAccelerator.c
| From: | Dmitry Stogov | Date: | Mon, 21 Oct 2019 11:52:26 +0000 |
| Subject: | com php-src: Fixed bug #78512 (Cannot make preload work): NEWS ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108965@lists.php.net to get a copy of this message | ||
Commit: 05c5e5dfde91955263469daa2dd5afcbb5199d17
Author: Dmitry Stogov <dmitry@zend.com> Mon, 21 Oct 2019 14:52:26 +0300
Parents: 3d55386aa895d483dafdb1b4e1870b552dba7b31
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=05c5e5dfde91955263469daa2dd5afcbb5199d17
Log:
Fixed bug #78512 (Cannot make preload work)
Bugs:
https://bugs.php.net/78512
Changed paths:
M NEWS
M ext/opcache/ZendAccelerator.c
Diff:
diff --git a/NEWS b/NEWS
index 2e7984985a8..3e5b9a5cd15 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,9 @@ PHP NEWS
. Fixed bug #74083 (master PHP-fpm is stopped on multiple reloads).
(Maksim Nikulin)
+-Opcache:
+ . Fixed bug #78512 (Cannot make preload work). (Dmitry)
+
- Reflection:
. Fixed bug #78697 (ReflectionClass::implementsInterface - inaccurate error
message with traits). (villfa)
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 056c7739a0b..636058dd087 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;