php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch use-different-opcache-memory-name-and-mmap-base-file.diff for opcache Bug #71024

Patch version 2015-12-04 08:43 UTC

Return to Bug #71024 | Download this patch
Patch Revisions:

Developer: pvasilevich@odin.com

837630397ebfdbdcf864ce43048e96a242aa0e6f
 ext/opcache/shared_alloc_win32.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/ext/opcache/shared_alloc_win32.c b/ext/opcache/shared_alloc_win32.c
index ce4bacf..c6f30aa 100644
--- a/ext/opcache/shared_alloc_win32.c
+++ b/ext/opcache/shared_alloc_win32.c
@@ -22,14 +22,15 @@
 #include "ZendAccelerator.h"
 #include "zend_shared_alloc.h"
 #include "zend_accelerator_util_funcs.h"
+#include "php_version.h"
 #include <winbase.h>
 #include <process.h>
 #include <LMCONS.H>
 
-#define ACCEL_FILEMAP_NAME "ZendOPcache.SharedMemoryArea"
-#define ACCEL_MUTEX_NAME "ZendOPcache.SharedMemoryMutex"
+#define ACCEL_FILEMAP_NAME "ZendOPcache.SharedMemoryArea." PHP_VERSION "." ARCHITECTURE
+#define ACCEL_MUTEX_NAME "ZendOPcache.SharedMemoryMutex." PHP_VERSION "." ARCHITECTURE
 #define ACCEL_FILEMAP_BASE_DEFAULT 0x01000000
-#define ACCEL_FILEMAP_BASE "ZendOPcache.MemoryBase"
+#define ACCEL_FILEMAP_BASE "ZendOPcache.MemoryBase." PHP_VERSION "." ARCHITECTURE
 #define ACCEL_EVENT_SOURCE "Zend OPcache"
 
 static HANDLE memfile = NULL, memory_mutex = NULL;
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 18 01:01:26 2020 UTC