Skip to content

Commit

Permalink
Change default value for PDO_Mysql driver ATTR_EMULATE_PREPARES to off
Browse files Browse the repository at this point in the history
  • Loading branch information
ircmaxell committed Jun 15, 2012
1 parent bf8b584 commit 3d9d25d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ PHP NEWS
. Deprecated the /e modifier . Deprecated the /e modifier
(https://wiki.php.net/rfc/remove_preg_replace_eval_modifier). (Nikita Popov) (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 - pgsql
. Added pg_escape_literal() and pg_escape_identifier() (Yasuo) . Added pg_escape_literal() and pg_escape_identifier() (Yasuo)


Expand Down
3 changes: 2 additions & 1 deletion ext/pdo_mysql/mysql_driver.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
H->max_buffer_size = 1024*1024; H->max_buffer_size = 1024*1024;
#endif #endif


H->buffered = H->emulate_prepare = 1; H->buffered = 1;
H->emulate_prepare = 0;


/* handle MySQL options */ /* handle MySQL options */
if (driver_options) { if (driver_options) {
Expand Down

0 comments on commit 3d9d25d

Please sign in to comment.