diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2022-03-06 22:40:55 -0600 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2022-03-06 22:43:50 -0600 |
commit | a9c2430bd9f97ff6bfcc2daf9a791f549a1d2f9b (patch) | |
tree | 25447597f0ab9d0eb6369a4549a28440d1f68a09 /net/phpldapadmin/files/patch-lib_ds__ldap.php | |
parent | devel/R-cran-rlang: Update to 1.0.2 (diff) |
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
Diffstat (limited to 'net/phpldapadmin/files/patch-lib_ds__ldap.php')
-rw-r--r-- | net/phpldapadmin/files/patch-lib_ds__ldap.php | 38 |
1 files changed, 38 insertions, 0 deletions
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) |