Commit: 80c13e99653ce2638700b6b0c32f8cf732213d75 Author: Rasmus Lerdorf <ras...@php.net> Wed, 29 May 2013 14:17:32 -0700 Parents: 029c1da84647d55ddc9fb09722e1fd0cdf427ac5 Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=80c13e99653ce2638700b6b0c32f8cf732213d75 Log: This needs to be a long Otherwise we are limited to a 2G opcache segment Changed paths: M ext/opcache/zend_shared_alloc.c M ext/opcache/zend_shared_alloc.h Diff: diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c index 5405751..691c2a5 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; diff --git a/ext/opcache/zend_shared_alloc.h b/ext/opcache/zend_shared_alloc.h index b7f3629..40f1f89 100644 --- a/ext/opcache/zend_shared_alloc.h +++ b/ext/opcache/zend_shared_alloc.h @@ -117,7 +117,7 @@ extern zend_smm_shared_globals *smm_shared_globals; #define SHARED_ALLOC_REATTACHED (SUCCESS+1) -int zend_shared_alloc_startup(int requested_size); +int zend_shared_alloc_startup(long requested_size); void zend_shared_alloc_shutdown(void); /* allocate shared memory block */ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php