PDO has the option PDO::ATTR_EMULATE_PREPARES
which controls if prepared statements should be emulated only if not supported by the DB or always. However, it does not mention if it always emulates them by default or not.
Usually one would assume that emulation is only used if necessary but since it's PHP nothing can be assumed just because it's sane...
Depends on the database driver. They are always emulated by default for MySql (although of course you can turn the option off manually); in Postgres the proper default setting is detected dynamically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With