From: Xinchen Hui Date: Tue, 1 Mar 2016 02:50:56 +0000 (+0800) Subject: Fixed another segfault with file_cache_only now X-Git-Tag: php-7.0.5RC1~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fc0517328a248825703bef90d631ec687fb0d58;p=php Fixed another segfault with file_cache_only now --- 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 {