Hi, I'd like to add a new method that would return the prepared statement as it was executed. It's common for people I work with to want this info for debugging, but you can't get it from userland. The functionality is similar to, but distinct from PDOStatement::debugDumpParams().
I figure it's always easier to discuss proposals alongside real code: https://github.com/php/php-src/pull/2159 Please let me know what you think, if an RFC would be appropriate, or what. Thanks, Adam