mirror of
https://abf.rosa.ru/djam/php7.git
synced 2025-02-23 14:52:47 +00:00
66 lines
2.2 KiB
Diff
66 lines
2.2 KiB
Diff
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
|
|
index dc2e0e7e..a02254b0 100644
|
|
--- a/ext/mysqli/mysqli.c
|
|
+++ b/ext/mysqli/mysqli.c
|
|
@@ -24,6 +24,7 @@
|
|
|
|
#include <signal.h>
|
|
|
|
+#include <mysql/mysql_version.h>
|
|
#include "php.h"
|
|
#include "php_ini.h"
|
|
#include "ext/standard/info.h"
|
|
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
|
|
index 6462c19c..f54a10a5 100644
|
|
--- a/ext/mysqli/mysqli_api.c
|
|
+++ b/ext/mysqli/mysqli_api.c
|
|
@@ -614,7 +614,7 @@ PHP_FUNCTION(mysqli_change_user)
|
|
size_t user_len, password_len, dbname_len;
|
|
zend_ulong rc;
|
|
#if !defined(MYSQLI_USE_MYSQLND) && defined(HAVE_MYSQLI_SET_CHARSET)
|
|
- const CHARSET_INFO * old_charset;
|
|
+ const MY_CHARSET_INFO * old_charset;
|
|
#endif
|
|
|
|
if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Osss!", &mysql_link, mysqli_link_class_entry, &user, &user_len, &password, &password_len, &dbname, &dbname_len) == FAILURE) {
|
|
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c
|
|
index e8b1e348..7924bc3c 100644
|
|
--- a/ext/mysqli/mysqli_nonapi.c
|
|
+++ b/ext/mysqli/mysqli_nonapi.c
|
|
@@ -328,7 +328,7 @@ void mysqli_common_connect(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_real_conne
|
|
php_mysqli_set_error(mysql_errno(mysql->mysql), (char *) mysql_error(mysql->mysql));
|
|
|
|
#if !defined(MYSQLI_USE_MYSQLND)
|
|
- mysql->mysql->reconnect = MyG(reconnect);
|
|
+/* mysql->mysql->reconnect = MyG(reconnect); */
|
|
#endif
|
|
unsigned int allow_local_infile = MyG(allow_local_infile);
|
|
mysql_options(mysql->mysql, MYSQL_OPT_LOCAL_INFILE, (char *)&allow_local_infile);
|
|
diff --git a/ext/mysqli/mysqli_prop.c b/ext/mysqli/mysqli_prop.c
|
|
index 8190d4ab..a42b3cf9 100644
|
|
--- a/ext/mysqli/mysqli_prop.c
|
|
+++ b/ext/mysqli/mysqli_prop.c
|
|
@@ -23,6 +23,7 @@
|
|
|
|
#include <signal.h>
|
|
|
|
+#include <mysql/mysql_version.h>
|
|
#include "php.h"
|
|
#include "php_ini.h"
|
|
#include "ext/standard/info.h"
|
|
diff --git a/ext/mysqli/php_mysqli_structs.h b/ext/mysqli/php_mysqli_structs.h
|
|
index 96fbacb8..dca05fbe 100644
|
|
--- a/ext/mysqli/php_mysqli_structs.h
|
|
+++ b/ext/mysqli/php_mysqli_structs.h
|
|
@@ -73,11 +73,7 @@
|
|
#include <my_sys.h>
|
|
#include <mysql.h>
|
|
#include <errmsg.h>
|
|
-#include <my_list.h>
|
|
-#include <m_string.h>
|
|
#include <mysqld_error.h>
|
|
-#include <my_list.h>
|
|
-#include <m_ctype.h>
|
|
#include "mysqli_libmysql.h"
|
|
#endif /* MYSQLI_USE_MYSQLND */
|
|
|