Anonymous | Login | Signup for a new account | 12-17-2024 08:35 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002833 | [Quercus] | minor | always | 08-08-08 15:31 | 08-11-08 09:42 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.2.0 | ||||||
Summary | 0002833: apc_cache_info() doesn't respect "limited" parameter (patch included) | ||||||||
Description |
apc_cache_info is supposed to take two parameters, the second of which is a boolean that suppresses the dump of the cache contents. Patch: --- a/modules/quercus/src/com/caucho/quercus/lib/ApcModule.java +++ b/modules/quercus/src/com/caucho/quercus/lib/ApcModule.java @@ -75,7 +75,7 @@ public class ApcModule extends AbstractQuercusModule { /** * Returns cache information. */ - public Value apc_cache_info(Env env, @Optional String type) + public Value apc_cache_info(Env env, @Optional String type, @Optional("false") boolean limited) { ArrayValue value = new ArrayValueImpl(); @@ -97,7 +97,7 @@ public class ApcModule extends AbstractQuercusModule { ArrayValueImpl cacheList = new ArrayValueImpl(); value.put(env.createString("cache_list"), cacheList); - if ("user".equals(type) && _cache != null) { + if ("user".equals(type) && _cache != null && ! limited) { ArrayList<String> keys = new ArrayList<String>(); ArrayList<Entry> values = new ArrayList<Entry>(); |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |