fixes #1

I've used this in project [php-mvc](https://github.com/tarcnux/php-mvc/blob/develop/application/libs/pdo-debug.php) and it worked well