com php-src: Fixed another segfault with file_cache_only now: ext/opcache/zend_shared_alloc.c

From: Date: Tue, 01 Mar 2016 02:50:56 +0000
Subject: com php-src: Fixed another segfault with file_cache_only now: ext/opcache/zend_shared_alloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91199@lists.php.net to get a copy of this message
Commit: 9fc0517328a248825703bef90d631ec687fb0d58 Author: Xinchen Hui <laruence@gmail.com> Tue, 1 Mar 2016 10:50:56 +0800 Parents: a6afaa9a85e3ba48d8b58fd1fbfae8d84892abb5 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9fc0517328a248825703bef90d631ec687fb0d58 Log: Fixed another segfault with file_cache_only now Changed paths: M ext/opcache/zend_shared_alloc.c Diff: diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c index deae886..663d905 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 {

« previous php.cvs (#91199) next »