Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change default value for PDO_Mysql driver ATTR_EMULATE_PREPARES to off

  • Loading branch information...
commit 3d9d25dfd72ed0c4dd47475b08949cea5975252a 1 parent bf8b584
@ircmaxell authored
Showing with 5 additions and 1 deletion.
  1. +3 −0  NEWS
  2. +2 −1  ext/pdo_mysql/mysql_driver.c
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.