Skip to content

Instantly share code, notes, and snippets.

@cmb69 cmb69/.patch
Created Mar 17, 2019

Embed
What would you like to do?
No auto address mapping
ext/opcache/shared_alloc_win32.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ext/opcache/shared_alloc_win32.c b/ext/opcache/shared_alloc_win32.c
index 5207a59812..ab268a510c 100644
--- a/ext/opcache/shared_alloc_win32.c
+++ b/ext/opcache/shared_alloc_win32.c
@@ -310,11 +310,12 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_
}
}
+ shared_segment->p = mapping_base = NULL;
do {
- shared_segment->p = mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS, 0, 0, 0, *wanted_mapping_base);
if (*wanted_mapping_base == NULL) { /* Auto address (NULL) is the last option on the array */
break;
}
+ shared_segment->p = mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS, 0, 0, 0, *wanted_mapping_base);
wanted_mapping_base++;
} while (!mapping_base);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.