Browse Source

MFH: Fix #45763 (mysqli::multi_query does not work with mysqlnd)

PECL
Johannes Schlüter 18 years ago
parent
commit
f869bbfc1b
  1. 1
      NEWS
  2. 4
      ext/mysqli/mysqli_nonapi.c

1
NEWS

@ -13,6 +13,7 @@ PHP NEWS
- Fixed a bug causing miscalculations with the "last <weekday> of <n> month"
relative time string. (Derick)
- Fixed bug #45763 (mysqli::multi_query does not work with mysqlnd). (Johannes)
- Fixed bug #45757 (FreeBSD4.11 build failure: failed include; stdint.h).
(Hannes)
- Fixed bug #45717 (Fileinfo/libmagic build fails, missing err.h and getopt.h).

4
ext/mysqli/mysqli_nonapi.c

@ -271,11 +271,7 @@ end:
MyG(num_links)++;
#if !defined(MYSQLI_USE_MYSQLND)
mysql->multi_query = 0;
#else
mysql->multi_query = 1;
#endif
if (!object || !instanceof_function(Z_OBJCE_P(object), mysqli_link_class_entry TSRMLS_CC)) {
MYSQLI_RETURN_RESOURCE(mysqli_resource, mysqli_link_class_entry);

Loading…
Cancel
Save