Bug #61838 [Com]: mysqli_get_cache_stats() does nothing

From: Date: Tue, 25 Aug 2015 07:24:18 +0000
Subject: Bug #61838 [Com]: mysqli_get_cache_stats() does nothing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195493@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61838&edit=1

 ID:                 61838
 Comment by:         accounts at dotmanila dot com
 Reported by:        jpauli@php.net
 Summary:            mysqli_get_cache_stats() does nothing
 Status:             Not a bug
 Type:               Bug
 Package:            MySQL related
 Operating System:   Linux
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

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 https://bugs.php.net/bug.php?id=70352


Previous Comments:
------------------------------------------------------------------------
[2012-05-02 14:20:53] jpauli@php.net

So, there is no plan to implement this function at all ?

------------------------------------------------------------------------
[2012-05-02 14:16:07] uw@php.net

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-04-24 14:19:38] jpauli@php.net

Description:
------------
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


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=61838&edit=1


Thread (4 messages)

« previous php.bugs (#195493) next »