|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61838 mysqli_get_cache_stats() does nothing
Submitted: 2012-04-24 14:19 UTC Modified: 2012-05-02 14:20 UTC
From: Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.3.10 OS: Linux
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.
Bug Type:
New email:
PHP Version: OS:


 [2012-04-24 14:19 UTC]
mysqli_get_cache_stats() just return an empty array, always.
It has not been implemented, but it's documented :)

Test script:
See source code of mysqli_get_cache_stats(), it always returns an empty array, whatever happens

Expected result:
mysqli_get_cache_stats() returns useful data

Actual result:
mysqli_get_cache_stats() is useless actually


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-02 14:16 UTC]
Good find, but...

- it is marked as undocumented. Means, it can return pretty much anything, including nothing. 
- it is marked as deprecated. 

Whether this is sufficient or not, well, Docs team can decide on adding a note.I would say its OK as it is. Thus, setting to "not a bug".
 [2012-05-02 14:16 UTC]
-Status: Open +Status: Not a bug
 [2012-05-02 14:20 UTC]
So, there is no plan to implement this function at all ?
 [2015-08-25 07:24 UTC] accounts at dotmanila dot com
On 5.6.12, this when calling the function, it returns an error instead of an empty array. Documentation should be updated opened a doc bug here
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Mar 24 02:03:43 2023 UTC