From a9c2430bd9f97ff6bfcc2daf9a791f549a1d2f9b Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sun, 6 Mar 2022 22:40:55 -0600 Subject: net/phpldapadmin: Fix runtime with php80 - Pet portclippy/portfmt PR: 261990 Reported by: ohartmann@walstatt.org Approved by: ports@bsdserwis.com (maintainer) Sponsored by: Bounce Experts --- net/phpldapadmin/files/patch-lib_ds__ldap.php | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 net/phpldapadmin/files/patch-lib_ds__ldap.php (limited to 'net/phpldapadmin/files/patch-lib_ds__ldap.php') diff --git a/net/phpldapadmin/files/patch-lib_ds__ldap.php b/net/phpldapadmin/files/patch-lib_ds__ldap.php new file mode 100644 index 000000000000..4e341a6eb75f --- /dev/null +++ b/net/phpldapadmin/files/patch-lib_ds__ldap.php @@ -0,0 +1,38 @@ +--- lib/ds_ldap.php.orig 2021-12-12 02:35:51 UTC ++++ lib/ds_ldap.php +@@ -1768,7 +1768,7 @@ class ldap extends DS { + ksort($return); + + # cache the schema to prevent multiple schema fetches from LDAP server +- set_cached_item($this->index,'schema','objectclasses',$return); ++ set_cached_item($this->index,$return,'schema','objectclasses'); + } + + if (DEBUG_ENABLED) +@@ -1953,7 +1953,7 @@ class ldap extends DS { + $return = $attrs; + + # cache the schema to prevent multiple schema fetches from LDAP server +- set_cached_item($this->index,'schema','attributes',$return); ++ set_cached_item($this->index,$return,'schema','attributes'); + } + + if (DEBUG_ENABLED) +@@ -2029,7 +2029,7 @@ class ldap extends DS { + $return = $rules; + + # cache the schema to prevent multiple schema fetches from LDAP server +- set_cached_item($this->index,'schema','matchingrules',$return); ++ set_cached_item($this->index,$return,'schema','matchingrules'); + } + + if (DEBUG_ENABLED) +@@ -2078,7 +2078,7 @@ class ldap extends DS { + ksort($return); + + # cache the schema to prevent multiple schema fetches from LDAP server +- set_cached_item($this->index,'schema','syntaxes',$return); ++ set_cached_item($this->index,$return,'schema','syntaxes'); + } + + if (DEBUG_ENABLED) -- cgit v1.2.3