cvs: pecl /apc INSTALL apc_cache.c php_apc.c

From: Date: Thu, 16 Feb 2006 23:31:43 +0000
Subject: cvs: pecl /apc INSTALL apc_cache.c php_apc.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-5197@lists.php.net to get a copy of this message
iliaa Thu Feb 16 23:31:43 2006 UTC Modified files: /pecl/apc INSTALL apc_cache.c php_apc.c Log: Added missing docs for a few configuration options. Fixes for bug #2779 & #5111 Fixed a crash when repeated calls to store on the same variable name are done. # Original patches contributed by Brian Shire http://cvs.php.net/viewcvs.cgi/pecl/apc/INSTALL?r1=3.48&r2=3.49&diff_format=u Index: pecl/apc/INSTALL diff -u pecl/apc/INSTALL:3.48 pecl/apc/INSTALL:3.49 --- pecl/apc/INSTALL:3.48 Thu Dec 15 07:50:25 2005 +++ pecl/apc/INSTALL Thu Feb 16 23:31:43 2006 @@ -223,6 +223,11 @@ many thousands of source files. (Default: 1000) + apc.user_entries_hint Just like num_files_hint, a "hint" about the number + of distinct user cache variables to store. + Set to zero or omit if you're not sure; + (Default: 100) + apc.ttl The number of seconds a cache entry is allowed to idle in a slot in case this cache entry slot is needed by another entry. Leaving this at zero @@ -231,6 +236,15 @@ cached. (Default: 0) + apc.user_ttl The number of seconds a user cache entry is allowed + to idle in a slot in case this cache entry slot is + needed by another entry. Leaving this at zero + means that your cache could potentially fill up + with stale entries while newer entries won't be + cached. + (Default: 0) + + apc.gc_ttl The number of seconds that a cache entry may remain on the garbage-collection list. This value provides a failsafe in the event that a server @@ -271,7 +285,7 @@ kernel's /dev/zero interface to anonymous mmap'ed memory. Leaving it undefined will force an anonymous mmap. - (Default: "") + (Default: "") apc.slam_defense On very busy servers whenever you start the server or modify files you can create a race of many processes http://cvs.php.net/viewcvs.cgi/pecl/apc/apc_cache.c?r1=3.102&r2=3.103&diff_format=u Index: pecl/apc/apc_cache.c diff -u pecl/apc/apc_cache.c:3.102 pecl/apc/apc_cache.c:3.103 --- pecl/apc/apc_cache.c:3.102 Fri Jan 27 15:06:01 2006 +++ pecl/apc/apc_cache.c Thu Feb 16 23:31:43 2006 @@ -28,7 +28,7 @@ */ -/* $Id: apc_cache.c,v 3.102 2006/01/27 15:06:01 iliaa Exp $ */ +/* $Id: apc_cache.c,v 3.103 2006/02/16 23:31:43 iliaa Exp $ */ #include "apc_cache.h" #include "apc_lock.h" @@ -468,6 +468,9 @@ UNLOCK(cache); return 0; } + if (APCG(mem_size_ptr) != NULL) { + value->mem_size = *APCG(mem_size_ptr); + } UNLOCK(cache); return 1; @@ -485,7 +488,7 @@ while (*slot) { if (key_equals((*slot)->key.data.file, key.data.file)) { - if ((*slot)->key.mtime < key.mtime) { + if ((*slot)->key.mtime != key.mtime) { remove_slot(cache, slot); break; } http://cvs.php.net/viewcvs.cgi/pecl/apc/php_apc.c?r1=3.78&r2=3.79&diff_format=u Index: pecl/apc/php_apc.c diff -u pecl/apc/php_apc.c:3.78 pecl/apc/php_apc.c:3.79 --- pecl/apc/php_apc.c:3.78 Thu Feb 9 17:40:16 2006 +++ pecl/apc/php_apc.c Thu Feb 16 23:31:43 2006 @@ -26,7 +26,7 @@ */ -/* $Id: php_apc.c,v 3.78 2006/02/09 17:40:16 rasmus Exp $ */ +/* $Id: php_apc.c,v 3.79 2006/02/16 23:31:43 iliaa Exp $ */ #include "php_apc.h" #include "apc_zend.h" @@ -167,7 +167,7 @@ #else php_info_print_table_row(2, "MMAP Support", "Disabled"); #endif - php_info_print_table_row(2, "Revision", "$Revision: 3.78 $"); + php_info_print_table_row(2, "Revision", "$Revision: 3.79 $"); php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); @@ -439,7 +439,6 @@ } APCG(mem_size_ptr) = NULL; - entry->mem_size = mem_size; return 1;

« previous php.pecl.cvs (#5197) next »