summaryrefslogtreecommitdiff
path: root/ext/opcache/shared_alloc_win32.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2013-03-27 22:16:18 +0400
committerDmitry Stogov <dmitry@zend.com>2013-03-27 22:16:18 +0400
commit91ab11ed078f0fde6d17f278f7f3705c9fb38805 (patch)
tree1af3159dd11a8a81980670090cba751db49bfe72 /ext/opcache/shared_alloc_win32.c
parentfc7efecda05b85634b87311400842678985c66aa (diff)
downloadphp-git-91ab11ed078f0fde6d17f278f7f3705c9fb38805.tar.gz
Fixed issue #76 (actually we don't need zend_shared_memory_block_header at all)
Diffstat (limited to 'ext/opcache/shared_alloc_win32.c')
-rw-r--r--ext/opcache/shared_alloc_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/shared_alloc_win32.c b/ext/opcache/shared_alloc_win32.c
index e323952845..2c3218414d 100644
--- a/ext/opcache/shared_alloc_win32.c
+++ b/ext/opcache/shared_alloc_win32.c
@@ -166,7 +166,7 @@ static int zend_shared_alloc_reattach(size_t requested_size, char **error_in)
}
return ALLOC_FAIL_MAPPING;
}
- smm_shared_globals = (zend_smm_shared_globals *) (((char *) mapping_base) + sizeof(zend_shared_memory_block_header));
+ smm_shared_globals = (zend_smm_shared_globals *) mapping_base;
return SUCCESSFULLY_REATTACHED;
}