> > This issue is not difficult to solve in userland, at least well enough for > debugging in my experience. Here's an older example I wrote up on my blog > that worked (but I'm told is broken right now): https://daveyshafik.com/ > archives/605-debugging-pdo-prepared-statements.html >
I want to be able to write .phpt tests that validate how values are getting interpolated into emulated prepares. Since this creates a separate code path, it wouldn't let me validate what gets sent to the server. PDO::quote() doesn't necessarily produce the same output as pdo_parse_params().