aboutsummaryrefslogtreecommitdiff
path: root/lang/php73
diff options
context:
space:
mode:
authorTorsten Zuehlsdorff <tz@FreeBSD.org>2020-01-09 22:03:40 +0000
committerTorsten Zuehlsdorff <tz@FreeBSD.org>2020-01-09 22:03:40 +0000
commita367f0eb462c7b1cd01bf9df36f9935bbd39ffd7 (patch)
tree9799ba825ce05133ddf25b8c21fae286c96e21d8 /lang/php73
parentc2dfb89a404f8535083ec276ec7f520dddb367f2 (diff)
downloadports-a367f0eb462c7b1cd01bf9df36f9935bbd39ffd7.tar.gz
ports-a367f0eb462c7b1cd01bf9df36f9935bbd39ffd7.zip
Unbreak databases/php73-mysqli when lang/php73 is build with MYSQLND=off
Currently when building lang/php73 with MYSQLND=off, its im possible to build databases/php73-mysqli. When the option MYSQLND was added, we expected users to not use mysqli at all after disabling this option. This has proven to be wrong, so we patch the build to be work again. patch-ext_mysqli_mysqli__api.c was submitted by Сергей <joker@pinnet.ru>. Merge patches from r522478 into this commit and add two additional patches.
Notes
Notes: svn path=/head/; revision=522539
Diffstat (limited to 'lang/php73')
-rw-r--r--lang/php73/files/patch-ext_mysqli_mysqli__api.c13
-rw-r--r--lang/php73/files/patch-ext_mysqli_mysqli__nonapi.c12
-rw-r--r--lang/php73/files/patch-ext_mysqli_mysqli__prop.c12
-rw-r--r--lang/php73/files/patch-ext_mysqli_php__mysqli__structs.h11
4 files changed, 48 insertions, 0 deletions
diff --git a/lang/php73/files/patch-ext_mysqli_mysqli__api.c b/lang/php73/files/patch-ext_mysqli_mysqli__api.c
new file mode 100644
index 000000000000..f97d9f40b1c8
--- /dev/null
+++ b/lang/php73/files/patch-ext_mysqli_mysqli__api.c
@@ -0,0 +1,13 @@
+--- ext/mysqli/mysqli_api.c.orig 2019-12-17 10:29:23 UTC
++++ ext/mysqli/mysqli_api.c
+@@ -31,8 +31,9 @@
+ #include "zend_smart_str.h"
+ #include "php_mysqli_structs.h"
+ #include "mysqli_priv.h"
++#if defined(MYSQLI_USE_MYSQLND)
+ #include "ext/mysqlnd/mysql_float_to_double.h"
+-
++#endif
+
+ #if !defined(MYSQLI_USE_MYSQLND)
+ /* {{{ mysqli_tx_cor_options_to_string */
diff --git a/lang/php73/files/patch-ext_mysqli_mysqli__nonapi.c b/lang/php73/files/patch-ext_mysqli_mysqli__nonapi.c
new file mode 100644
index 000000000000..9baa04218bf9
--- /dev/null
+++ b/lang/php73/files/patch-ext_mysqli_mysqli__nonapi.c
@@ -0,0 +1,12 @@
+--- ext/mysqli/mysqli_nonapi.c.orig 2020-01-09 11:40:57 UTC
++++ ext/mysqli/mysqli_nonapi.c
+@@ -28,7 +28,9 @@
+ #include "php_ini.h"
+ #include "ext/standard/info.h"
+ #include "zend_smart_str.h"
++#if defined(MYSQLI_USE_MYSQLND)
+ #include "php_mysqli_structs.h"
++#endif
+ #include "mysqli_priv.h"
+
+ #define SAFE_STR(a) ((a)?a:"")
diff --git a/lang/php73/files/patch-ext_mysqli_mysqli__prop.c b/lang/php73/files/patch-ext_mysqli_mysqli__prop.c
new file mode 100644
index 000000000000..37d47a304440
--- /dev/null
+++ b/lang/php73/files/patch-ext_mysqli_mysqli__prop.c
@@ -0,0 +1,12 @@
+--- ext/mysqli/mysqli_prop.c.orig 2020-01-09 11:40:11 UTC
++++ ext/mysqli/mysqli_prop.c
+@@ -26,7 +26,9 @@
+ #include "php.h"
+ #include "php_ini.h"
+ #include "ext/standard/info.h"
++#if defined(MYSQLI_USE_MYSQLND)
+ #include "php_mysqli_structs.h"
++#endif
+ #include "mysqli_priv.h"
+
+ #define CHECK_STATUS(value) \
diff --git a/lang/php73/files/patch-ext_mysqli_php__mysqli__structs.h b/lang/php73/files/patch-ext_mysqli_php__mysqli__structs.h
new file mode 100644
index 000000000000..f0e33efd03aa
--- /dev/null
+++ b/lang/php73/files/patch-ext_mysqli_php__mysqli__structs.h
@@ -0,0 +1,11 @@
+--- ext/mysqli/php_mysqli_structs.h.orig 2019-12-17 10:29:23 UTC
++++ ext/mysqli/php_mysqli_structs.h
+@@ -36,7 +36,7 @@
+ #define FALSE 0
+ #endif
+
+-#ifdef MYSQLI_USE_MYSQLND
++#if defined(MYSQLI_USE_MYSQLND)
+ #include "ext/mysqlnd/mysqlnd.h"
+ #include "mysqli_mysqlnd.h"
+ #else