diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-06-30 07:02:51 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-06-30 07:02:51 +0000 |
commit | 264b6a90fe1599315d67057727a03e5c01ac13f6 (patch) | |
tree | cf53e6ecd4a428ad32f57f840a9d8272f0d7d10d | |
parent | acb6e3ed078aecc76168788cea3891b4a417c49d (diff) |
databases/pecl-couchbase: Fix build with PHP 8.3
-rw-r--r-- | databases/pecl-couchbase/Makefile | 1 | ||||
-rw-r--r-- | databases/pecl-couchbase/files/patch-php83 | 18 |
2 files changed, 18 insertions, 1 deletions
diff --git a/databases/pecl-couchbase/Makefile b/databases/pecl-couchbase/Makefile index e2f672e955aa..b40b80f2d960 100644 --- a/databases/pecl-couchbase/Makefile +++ b/databases/pecl-couchbase/Makefile @@ -13,7 +13,6 @@ LICENSE= APACHE20 BUILD_DEPENDS= cmake:devel/cmake-core USES= compiler:c++17-lang php:build,pecl -IGNORE_WITH_PHP= 83 CONFIGURE_ARGS= COUCHBASE_CMAKE_EXTRA="-DCOUCHBASE_CXX_CLIENT_EMBED_MOZILLA_CA_BUNDLE=OFF" diff --git a/databases/pecl-couchbase/files/patch-php83 b/databases/pecl-couchbase/files/patch-php83 new file mode 100644 index 000000000000..22bee7ae9cae --- /dev/null +++ b/databases/pecl-couchbase/files/patch-php83 @@ -0,0 +1,18 @@ +--- src/wrapper/common.hxx.orig 2023-05-26 07:56:45 UTC ++++ src/wrapper/common.hxx +@@ -31,12 +31,12 @@ ZEND_BEGIN_MODULE_GLOBALS(couchbase) + /* INI settings */ + char* log_level{ nullptr }; + char* log_path{ nullptr }; +-zend_bool log_php_log_err{ 1 }; +-zend_bool log_stderr{ 0 }; ++bool log_php_log_err{ 1 }; ++bool log_stderr{ 0 }; + zend_long max_persistent{ -1 }; /* maximum number of persistent connections per process */ + zend_long persistent_timeout{ -1 }; /* time period after which idle persistent connection is considered expired */ + /* module variables */ +-zend_bool initialized{ 0 }; ++bool initialized{ 0 }; + zend_long num_persistent{ 0 }; /* number of existing persistent connections */ + ZEND_END_MODULE_GLOBALS(couchbase) + |