]> granicus.if.org Git - php/commitdiff
Increased limit for opcache.max_accelerated_files to 1,000,000. (Chris)
authorDmitry Stogov <dmitry@zend.com>
Mon, 28 Oct 2013 10:19:40 +0000 (14:19 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 28 Oct 2013 10:19:40 +0000 (14:19 +0400)
NEWS
ext/opcache/README
ext/opcache/zend_accelerator_module.c

diff --git a/NEWS b/NEWS
index 81b281161731078b10120004b0979cedb8921298..9fe5fc463895f17904226aa3236e2b9fb01a822d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,9 @@ PHP                                                                        NEWS
   . Fixed bug #65911 (scope resolution operator - strange behavior with $this).
     (Bob Weinand)
 
+-OPcache
+  . Increased limit for opcache.max_accelerated_files to 1,000,000. (Chris)
+
 - ODBC
   . Fixed bug #65950 (Field name truncation if the field name is bigger than
     32 characters). (patch submitted by: michael dot y at zend dot com, Yasuo)
index 46521587fa719497a201aa75f9702510feb77801..2e30d92c001e15f5f2af17a1eb4d2f34221399d4 100644 (file)
@@ -80,8 +80,8 @@ opcache.max_accelerated_files (default "2000")
        The maximum number of keys (scripts) in the OPcache hash table.
        The number is actually the first one in the following set of prime
        numbers that is bigger than the one supplied: { 223, 463, 983, 1979, 3907,
-       7963, 16229, 32531, 65407, 130987 }. Only numbers between 200 and 100000
-       are allowed.
+       7963, 16229, 32531, 65407, 130987, 262237, 524521, 1048793 }. Only numbers
+       between 200 and 1000000 are allowed.
 
 opcache.max_wasted_percentage (default "5")
        The maximum percentage of "wasted" memory until a restart is scheduled.
index dedb7215c1df3d3d6a9910399cc1ca0039598f72..0914fb68dd936a21a014b09b58ba800b084d60bd 100644 (file)
@@ -34,7 +34,7 @@
 
 #define STRING_NOT_NULL(s) (NULL == (s)?"":s)
 #define MIN_ACCEL_FILES 200
-#define MAX_ACCEL_FILES 100000
+#define MAX_ACCEL_FILES 1000000
 #define TOKENTOSTR(X) #X
 
 static void (*orig_file_exists)(INTERNAL_FUNCTION_PARAMETERS) = NULL;