Re: PDO debug_info handler
| From: | Julien Pauli | Date: | Mon, 14 Apr 2014 13:46:43 +0000 |
| Subject: | Re: PDO debug_info handler | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73687@lists.php.net to get a copy of this message | ||
On Mon, Apr 7, 2014 at 2:53 PM, Julien Pauli <jpauli@php.net> wrote:
> 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