git: 448b92221648 - main - databases/pecl-leveldb: Fix build with PHP 8.5
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Jul 2025 07:26:50 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=448b922216484785dd959af8edb14668f7012eea
commit 448b922216484785dd959af8edb14668f7012eea
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-07-23 07:18:55 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-07-23 07:23:10 +0000
databases/pecl-leveldb: Fix build with PHP 8.5
Reference: https://pkg-status.freebsd.org/beefy22/data/142amd64-default/d4f6e186cb15/logs/php85-pecl-leveldb-0.3.0.log
---
databases/pecl-leveldb/files/patch-php85 | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/databases/pecl-leveldb/files/patch-php85 b/databases/pecl-leveldb/files/patch-php85
new file mode 100644
index 000000000000..c0883093c1cb
--- /dev/null
+++ b/databases/pecl-leveldb/files/patch-php85
@@ -0,0 +1,11 @@
+--- leveldb.c.orig 2021-02-18 14:14:17 UTC
++++ leveldb.c
+@@ -1578,7 +1578,7 @@ PHP_MINIT_FUNCTION(leveldb)
+ PHP_MINIT_FUNCTION(leveldb)
+ {
+ zend_class_entry ce;
+- zend_class_entry *exception_ce = zend_exception_get_default();
++ zend_class_entry *exception_ce = zend_ce_exception;
+
+ #define DECLARE_OBJ_HANDLERS(class_type) \
+ memcpy(& class_type##_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); \