Skip to content

Commit

Permalink
Dba 5.3 support for php5.3, php5.4, php5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lamskoy committed Feb 22, 2023
1 parent 998b233 commit 1a19230
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
22 changes: 22 additions & 0 deletions dba-5.3-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- a/ext/dba/config.m4
+++ a/ext/dba/config.m4
@@ -320,6 +320,10 @@
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
@@ -362,7 +366,7 @@
break
fi
done
- PHP_DBA_DB_CHECK(4, 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)])
+ 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)])
fi
PHP_DBA_STD_RESULT(db4,Berkeley DB4)

5 changes: 4 additions & 1 deletion phpbs
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,12 @@ _phpbs_set_vars() {
_patches+=("openssl-sslv3.patch")
fi

if ((_phpbase >= 50 && _phpbase <= 74)); then
if ((_phpbase >= 50 && _phpbase <= 73)); then
_patches+=("openssl-sslv3-consts.patch")
fi
if ((_phpbase >= 50 && _phpbase <= 55)); then
_patches+=("dba-5.3-support.patch")
fi

if ((_phpbase >= 54 && _phpbase <= 59 && _build_update_sqlite)); then
# PHP >= 5.4 && PHP < 7: Upgrade sqlite lib to 3.28
Expand Down

0 comments on commit 1a19230

Please sign in to comment.