raven-rhel6/isp-php56/php52-mariadb10.patch
2024-02-21 20:14:44 +06:00

14 lines
386 B
Diff

--- a/ext/mysql/php_mysql.c 2020-05-14 11:38:45.532581490 +0000
+++ b/ext/mysql/php_mysql.c 2020-05-14 11:44:46.168742339 +0000
@@ -68,6 +68,10 @@
#include "php_ini.h"
#include "php_mysql_structs.h"
+#if defined MARIADB_PORT && !defined MYSQL_PORT
+#define MYSQL_PORT MARIADB_PORT
+#endif
+
/* True globals, no need for thread safety */
static int le_result, le_link, le_plink;