com php-src: Don't restrict preloading with "open_basedir " directive.: ext/opcache/ZendAccelerator.c
| From: | Dmitry Stogov | Date: | Tue, 19 Feb 2019 20:17:38 +0000 |
| Subject: | com php-src: Don't restrict preloading with "open_basedir " directive.: ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104751@lists.php.net to get a copy of this message | ||
Commit: 0510b41a0671fc1094a4e4521faaceb920889001
Author: Dmitry Stogov <dmitry@zend.com> Tue, 19 Feb 2019 23:17:38 +0300
Parents: b1b392763e1330b11b0862c3881eafba6fb631ea
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0510b41a0671fc1094a4e4521faaceb920889001
Log:
Don't restrict preloading with "open_basedir" directive.
Changed paths:
M ext/opcache/ZendAccelerator.c
Diff:
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 7dbce77..4068459 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -3839,8 +3839,11 @@ static int accel_preload(const char *config)
zend_file_handle file_handle;
int ret;
uint32_t orig_compiler_options;
+ char *orig_open_basedir;
ZCG(enabled) = 0;
+ orig_open_basedir = PG(open_basedir);
+ PG(open_basedir) = NULL;
preload_orig_compile_file = accelerator_orig_compile_file;
accelerator_orig_compile_file = preload_compile_file;
@@ -3892,6 +3895,7 @@ static int accel_preload(const char *config)
} zend_end_try();
CG(compiler_options) = orig_compiler_options;
+ PG(open_basedir) = orig_open_basedir;
accelerator_orig_compile_file = preload_orig_compile_file;
ZCG(enabled) = 1;