php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59103 All "*_info" functions should support an optional parameter "summaryonly"
Submitted: 2010-03-08 14:03 UTC Modified: 2010-03-15 02:33 UTC
From: ruslany@php.net Assigned:
Status: Closed Package: WinCache (PECL)
PHP Version: 5.2.13 OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ruslany@php.net
New email:
PHP Version: OS:

 

 [2010-03-08 14:03 UTC] ruslany@php.net
Description:
------------
Some customers use the "*_info" functions to display the wincache statistics on the public site. This means that for every request a call is made to a "*_info" funciton and it results in a big array of entries returned back. This array is never used, but it consumes memory and processing time. It would be useful to add an optional parameter to the functions so that user can choose whether to return the individual cached entries or just the summary.

APC has this feature already: http://us.php.net/manual/en/function.apc-cache-info.php


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-15 02:33 UTC] ksingla at microsoft dot com
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

All info functions (wincache_ocache_fileinfo, wincache_fcache_fileinfo, wincache_rplist_fileinfo, wincache_ucache_info, wincache_scache_info) accept an optional boolean argument summaryonly which when true will make API only return summary.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 10:01:31 2024 UTC