Hi Scott,
Scott Arciszewski wrote:
Inspired by http://stackoverflow.com/a/12202218/2224584
Can we (in either PHP 7.0 or in PHP 7.1) turn emulated prepared
statements off by default, and still allow developers to turn it on if
they really want them?
For now my code works around this design decision, but not everybody
is cognizant of this behavior.
I don't know if there's really still time to add this in PHP 7.0, but I
think emulated prepares being switched off would be a good idea. One
reason in particular is that this means we'd get properly typed results,
rather than just strings, which would work better with PHP 7's new
scalar type hints. PDO returning strings everywhere when using emulation
was one thing I was completely unaware of until I turned on strict typing.
Cheers.
--
Andrea Faulds
http://ajf.me/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php