summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_shared_alloc.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2013-05-29 14:17:32 -0700
committerRasmus Lerdorf <rasmus@php.net>2013-05-29 14:22:43 -0700
commit29ee4b81f2a17943b677d9b6fb372ec36166984a (patch)
treed86d66c54bb52cdbd82b190025517d1f34f364ae /ext/opcache/zend_shared_alloc.c
parent7e00d0994f666f9ed698f86bcd88087ebabe2bfe (diff)
downloadphp-git-29ee4b81f2a17943b677d9b6fb372ec36166984a.tar.gz
This needs to be a long
Otherwise we are limited to a 32G opcache segment
Diffstat (limited to 'ext/opcache/zend_shared_alloc.c')
-rw-r--r--ext/opcache/zend_shared_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c
index 5405751ac3..691c2a595a 100644
--- a/ext/opcache/zend_shared_alloc.c
+++ b/ext/opcache/zend_shared_alloc.c
@@ -119,7 +119,7 @@ static void copy_shared_segments(void *to, void *from, int count, int size)
}
}
-static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, int requested_size, zend_shared_segment ***shared_segments_p, int *shared_segments_count, char **error_in)
+static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, long requested_size, zend_shared_segment ***shared_segments_p, int *shared_segments_count, char **error_in)
{
int res;
g_shared_alloc_handler = he->handler;
@@ -148,7 +148,7 @@ static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, int
return ALLOC_FAILURE;
}
-int zend_shared_alloc_startup(int requested_size)
+int zend_shared_alloc_startup(long requested_size)
{
zend_shared_segment **tmp_shared_segments;
size_t shared_segments_array_size;