diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-03-01 10:50:56 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-03-01 10:50:56 +0800 |
commit | 9fc0517328a248825703bef90d631ec687fb0d58 (patch) | |
tree | 9393c8efcf3ac1190debf85b6c55bbeb6e2ed8d2 /ext/opcache/zend_shared_alloc.c | |
parent | a6afaa9a85e3ba48d8b58fd1fbfae8d84892abb5 (diff) | |
download | php-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.c | 4 |
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 { |