# mysqli_get_cache_stats() has vanished

- Thread: https://externals.io/message/87901
- Original archive: https://news-web.php.net/php.internals/87901
- Started by Christoph Becker on 2015-08-25T11:25:29+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #87901 — Christoph Becker — 2015-08-25T11:25:29+00:00

URL: https://externals.io/message/87901#87901

Hi!

Does anybody know what happened to mysqli_get_cache_stats()?
Apparently, its implementation has vanished between two consecutive commits:
<https://github.com/php/php-src/blob/40fabf68edd5524b9ce0cda925d6c7888d8441c3/ext/mysqli/mysqli_nonapi.c>,
<https://github.com/php/php-src/blob/b6898195674a26bf6588c284a6a2616bbaaa908f/ext/mysqli/mysqli_nonapi.c>.

It seems that happened accidentally, as the respective forward
declaration in mysqli_fe.h is still there, and the removal doesn't seem
to be documented (neither in NEWS nor UPGRADING).

I wonder what to do now, as the function never had a useful
implementation.  Shall it be officially removed?

See also the related bug reports <https://bugs.php.net/bug.php?id=61838>
and <https://bugs.php.net/bug.php?id=70352>.

-- 
Christoph M. Becker

---

## #87904 — Lior Kaplan — 2015-08-25T12:03:13+00:00

URL: https://externals.io/message/87901#87904 · In reply to: #87901

This might help:

https://github.com/php/php-src/commit/f9ad56eab9e0010231643d51a0e0038f99f2f94b

Kaplan



> Hi!
>
> Does anybody know what happened to mysqli_get_cache_stats()?
> Apparently, its implementation has vanished between two consecutive
> commits:
> <
> https://github.com/php/php-src/blob/40fabf68edd5524b9ce0cda925d6c7888d8441c3/ext/mysqli/mysqli_nonapi.c
> > […]
> <
> https://github.com/php/php-src/blob/b6898195674a26bf6588c284a6a2616bbaaa908f/ext/mysqli/mysqli_nonapi.c
> > […]
>
> It seems that happened accidentally, as the respective forward
> declaration in mysqli_fe.h is still there, and the removal doesn't seem
> to be documented (neither in NEWS nor UPGRADING).
>
> I wonder what to do now, as the function never had a useful
> implementation.  Shall it be officially removed?
>
> See also the related bug reports <https://bugs.php.net/bug.php?id=61838>
> and <https://bugs.php.net/bug.php?id=70352>.
>
> --
> Christoph M. Becker

---

## #87906 — Christoph Becker — 2015-08-25T12:22:05+00:00

URL: https://externals.io/message/87901#87906 · In reply to: #87904

> This might help:
> 
> https://github.com/php/php-src/commit/f9ad56eab9e0010231643d51a0e0038f99f2f94b

Thanks, Lior.

Apparently the function was finally removed as of PHP 5.4.0.  I'm going
to remove the superfluous forward declaration, and update the manual.

> 
> 
> > […]

-- 
Christoph M. Becker
