Mantis Bugtracker
  

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

- Relationships

- Notes
(0003313)
ferg
08-11-08 09:42

php/4208
 

- Issue History
Date Modified Username Field Change
08-08-08 15:31 koreth New Issue
08-11-08 09:42 ferg Note Added: 0003313
08-11-08 09:42 ferg Assigned To  => ferg
08-11-08 09:42 ferg Status new => closed
08-11-08 09:42 ferg Resolution open => fixed
08-11-08 09:42 ferg Fixed in Version  => 3.2.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker