git: 0a3ee7285db2 - main - security/mailzu: Fix runtime with php82

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 12 Nov 2023 19:23:17 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0a3ee7285db280eac52dc5af753c3449cc877d53

commit 0a3ee7285db280eac52dc5af753c3449cc877d53
Author:     Krzysztof <ports@bsdserwis.com>
AuthorDate: 2023-11-12 19:14:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-11-12 19:23:02 +0000

    security/mailzu: Fix runtime with php82
    
    After adding two more patches is working correctly (no error/warning
    messages in web server logs).
    
    PR:             274969
    Approved by:    submitter is maintainer
---
 security/mailzu/Makefile                             |  4 ++--
 security/mailzu/files/patch-lib_LDAPEngine.class.php | 10 ++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/security/mailzu/Makefile b/security/mailzu/Makefile
index fc35282dc586..f1ce3496e73a 100644
--- a/security/mailzu/Makefile
+++ b/security/mailzu/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mailzu
 DISTVERSION=	0.8rc3
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	security
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/MailZu%200.8RC3
 PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
@@ -21,7 +21,7 @@ RUN_DEPENDS=	${LOCALBASE}/sbin/amavisd:security/amavisd-new \
 
 USES=		php:flavors,web
 USE_PHP=	sockets
-IGNORE_WITH_PHP=	82 83
+IGNORE_WITH_PHP=	83
 
 NO_ARCH=	yes
 NO_BUILD=	yes
diff --git a/security/mailzu/files/patch-lib_LDAPEngine.class.php b/security/mailzu/files/patch-lib_LDAPEngine.class.php
new file mode 100644
index 000000000000..05783036ec9c
--- /dev/null
+++ b/security/mailzu/files/patch-lib_LDAPEngine.class.php
@@ -0,0 +1,10 @@
+--- lib/LDAPEngine.class.php.orig	2007-06-14 19:00:15 UTC
++++ lib/LDAPEngine.class.php
+@@ -283,6 +283,7 @@ class LDAPEngine {
+      	*/
+     	function searchUserDN($searchFilter) {
+ 
++		$dn = "";
+ 		switch ($this->serverType) {
+ 			case "ldap":
+ 				if ( $this->searchUser != '' ) {