# PDO debug_info handler

- Thread: https://externals.io/message/73622
- Original archive: https://news-web.php.net/php.internals/73622
- Started by Julien Pauli on 2014-04-07T12:53:47+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #73622 — Julien Pauli — 2014-04-07T12:53:47+00:00

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

Hey,

I noticed PDO has no debug_info handler.

This is always asked by developpers to have informations about
internal state while `var_dump()`ing objects as calling getAttribute()
can be weird sometimes when you need all info at once.
Note that PDOStatement has a (light) handler.

I started an implementation, here :
https://github.com/jpauli/php-src/tree/pdo_debug_info

The hardest part is missing, aka, retrieving driver specific informations.
I'll do this soon.

Thoughts ?
Johannes, perhaps you 've been asked in past about such a feature ?


Julien Pauli

---

## #73687 — Julien Pauli — 2014-04-14T13:46:43+00:00

URL: https://externals.io/message/73622#73687 · In reply to: #73622

> Hey,
>
> I noticed PDO has no debug_info handler.
>
> This is always asked by developpers to have informations about
> internal state while `var_dump()`ing objects as calling getAttribute()
> can be weird sometimes when you need all info at once.
> Note that PDOStatement has a (light) handler.
>
> I started an implementation, here :
> https://github.com/jpauli/php-src/tree/pdo_debug_info
>
> The hardest part is missing, aka, retrieving driver specific informations.
> I'll do this soon.
>
> Thoughts ?
> Johannes, perhaps you 've been asked in past about such a feature ?

I added some driver info.
Can't go further safely without redesigning the API.

Julien Pauli
