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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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 07:01:32 2024 UTC