]> granicus.if.org Git - php/commitdiff
Fixed another segfault with file_cache_only now
authorXinchen Hui <laruence@gmail.com>
Tue, 1 Mar 2016 02:50:56 +0000 (10:50 +0800)
committerXinchen Hui <laruence@gmail.com>
Tue, 1 Mar 2016 02:50:56 +0000 (10:50 +0800)
ext/opcache/zend_shared_alloc.c

index deae886991c5a24ced103d4a819069eb7652ea25..663d905c8d7f9219a8195b681db04a47cabc1019 100644 (file)
@@ -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 {