summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_shared_alloc.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-03-01 10:50:56 +0800
committerXinchen Hui <laruence@gmail.com>2016-03-01 10:50:56 +0800
commit9fc0517328a248825703bef90d631ec687fb0d58 (patch)
tree9393c8efcf3ac1190debf85b6c55bbeb6e2ed8d2 /ext/opcache/zend_shared_alloc.c
parenta6afaa9a85e3ba48d8b58fd1fbfae8d84892abb5 (diff)
downloadphp-git-9fc0517328a248825703bef90d631ec687fb0d58.tar.gz
Fixed another segfault with file_cache_only now
Diffstat (limited to 'ext/opcache/zend_shared_alloc.c')
-rw-r--r--ext/opcache/zend_shared_alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c
index deae886991..663d905c8d 100644
--- a/ext/opcache/zend_shared_alloc.c
+++ b/ext/opcache/zend_shared_alloc.c
@@ -496,6 +496,10 @@ void zend_accel_shared_protect(int mode)
#ifdef HAVE_MPROTECT
int i;
+ if (!smm_shared_globals) {
+ return;
+ }
+
if (mode) {
mode = PROT_READ;
} else {