Change default value for PDO_Mysql driver ATTR_EMULATE_PREPARES to off #108

Open
wants to merge 1 commit into
from
View
3 NEWS
@@ -50,6 +50,9 @@ PHP NEWS
. Deprecated the /e modifier
(https://wiki.php.net/rfc/remove_preg_replace_eval_modifier). (Nikita Popov)
+- PDO_MySQL:
+ . Changed default value for ATTR_EMULATE_PREPARES to 0. (Anthony Ferrara)
+
- pgsql
. Added pg_escape_literal() and pg_escape_identifier() (Yasuo)
View
3 ext/pdo_mysql/mysql_driver.c
@@ -587,7 +587,8 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
H->max_buffer_size = 1024*1024;
#endif
- H->buffered = H->emulate_prepare = 1;
+ H->buffered = 1;
+ H->emulate_prepare = 0;
/* handle MySQL options */
if (driver_options) {