Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion ext/pdo_mysql/mysql_driver.c
Original file line number 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;
#endif

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

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