summaryrefslogtreecommitdiffstats
path: root/php-8.4.0-libdb.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-09-23 15:31:00 +0200
committerRemi Collet <remi@php.net>2024-09-23 15:31:00 +0200
commit740a14090dec83951484a2705d7ffc7555ebb768 (patch)
tree7768a1c01872b781aaa4d530dd0cac8fe3bd7e3d /php-8.4.0-libdb.patch
parent16b62b61c0de11f9b89c4805a9b37e9bbc2ec12f (diff)
update to 8.4.0beta5
drop oci8, pdo_oci8, pspell and imap extensions disable ZTS build
Diffstat (limited to 'php-8.4.0-libdb.patch')
-rw-r--r--php-8.4.0-libdb.patch106
1 files changed, 106 insertions, 0 deletions
diff --git a/php-8.4.0-libdb.patch b/php-8.4.0-libdb.patch
new file mode 100644
index 0000000..af7add0
--- /dev/null
+++ b/php-8.4.0-libdb.patch
@@ -0,0 +1,106 @@
+diff -up ./ext/dba/config.m4.libdb ./ext/dba/config.m4
+--- ./ext/dba/config.m4.libdb 2020-04-09 14:06:11.000000000 +0200
++++ ./ext/dba/config.m4 2020-04-09 14:35:08.208605065 +0200
+@@ -421,55 +421,7 @@ if test "$PHP_DB4" != "no"; then
+ /usr/local \
+ /usr \
+ ; do
+- if test -f "$i/db5/db.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/db5/db.h
+- break
+- elif test -f "$i/db4/db.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/db4/db.h
+- break
+- elif test -f "$i/include/db5.3/db.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/include/db5.3/db.h
+- break
+- elif test -f "$i/include/db5.1/db.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/include/db5.1/db.h
+- break
+- elif test -f "$i/include/db5.0/db.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/include/db5.0/db.h
+- break
+- elif test -f "$i/include/db4.8/db.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/include/db4.8/db.h
+- break
+- elif test -f "$i/include/db4.7/db.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/include/db4.7/db.h
+- break
+- elif test -f "$i/include/db4.6/db.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/include/db4.6/db.h
+- break
+- elif test -f "$i/include/db4.5/db.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/include/db4.5/db.h
+- break
+- elif test -f "$i/include/db4/db.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/include/db4/db.h
+- break
+- elif test -f "$i/include/db/db4.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/include/db/db4.h
+- break
+- elif test -f "$i/include/db4.h"; then
+- THIS_PREFIX=$i
+- THIS_INCLUDE=$i/include/db4.h
+- break
+- elif test -f "$i/include/db.h"; then
++ if test -f "$i/include/db.h"; then
+ THIS_PREFIX=$i
+ THIS_INCLUDE=$i/include/db.h
+ break
+@@ -477,20 +429,6 @@ if test "$PHP_DB4" != "no"; then
+ done
+ PHP_DBA_DB_CHECK([4],
+ [
+- db-5.3
+- db-5.1
+- db-5.0
+- db-4.8
+- db-4.7
+- db-4.6
+- db-4.5
+- db-4.4
+- db-4.3
+- db-4.2
+- db-4.1
+- db-4.0
+- db-4
+- db4
+ db
+ ],
+ [(void)db_create((DB**)0, (DB_ENV*)0, 0)])
+diff -up ./ext/dba/dba.c.libdb ./ext/dba/dba.c
+--- ./ext/dba/dba.c.libdb 2020-04-09 14:06:11.000000000 +0200
++++ ./ext/dba/dba.c 2020-04-09 14:36:30.593275190 +0200
+@@ -49,6 +49,10 @@
+ #include "php_lmdb.h"
+ #include "dba_arginfo.h"
+
++#ifdef DB4_INCLUDE_FILE
++#include DB4_INCLUDE_FILE
++#endif
++
+ PHP_MINIT_FUNCTION(dba);
+ PHP_MSHUTDOWN_FUNCTION(dba);
+ PHP_MINFO_FUNCTION(dba);
+@@ -444,6 +448,10 @@ PHP_MINFO_FUNCTION(dba)
+
+ php_info_print_table_start();
+ php_info_print_table_row(2, "DBA support", "enabled");
++#ifdef DB_VERSION_STRING
++ php_info_print_table_row(2, "libdb header version", DB_VERSION_STRING);
++ php_info_print_table_row(2, "libdb library version", db_version(NULL, NULL, NULL));
++#endif
+ if (handlers.s) {
+ smart_str_0(&handlers);
+ php_info_print_table_row(2, "Supported handlers", ZSTR_VAL(handlers.s));