summaryrefslogtreecommitdiff
path: root/net/phpldapadmin/files/patch-lib_functions.php
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2022-03-06 22:40:55 -0600
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2022-03-06 22:43:50 -0600
commita9c2430bd9f97ff6bfcc2daf9a791f549a1d2f9b (patch)
tree25447597f0ab9d0eb6369a4549a28440d1f68a09 /net/phpldapadmin/files/patch-lib_functions.php
parentdevel/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_functions.php')
-rw-r--r--net/phpldapadmin/files/patch-lib_functions.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/phpldapadmin/files/patch-lib_functions.php b/net/phpldapadmin/files/patch-lib_functions.php
new file mode 100644
index 000000000000..23b2a5a43682
--- /dev/null
+++ b/net/phpldapadmin/files/patch-lib_functions.php
@@ -0,0 +1,31 @@
+--- lib/functions.php.orig 2021-12-12 02:35:51 UTC
++++ lib/functions.php
+@@ -928,7 +928,7 @@ function get_cached_item($index,$item,$subitem='null')
+ *
+ * Returns true on success of false on failure.
+ */
+-function set_cached_item($index,$item,$subitem='null',$data) {
++function set_cached_item($index,$data,$item,$subitem='null') {
+ if (DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))
+ debug_log('Entered (%%)',1,0,__FILE__,__LINE__,__METHOD__,$fargs);
+
+@@ -2032,8 +2032,8 @@ function ldap_error_msg($msg,$errnum) {
+ *
+ * Usage Examples:
+ * <code>
+- * draw_jpeg_photo(0,'cn=Bob,ou=People,dc=example,dc=com',"jpegPhoto",0,true,array('img_opts'=>"border: 1px; width: 150px"));
+- * draw_jpeg_photo(1,'cn=Fred,ou=People,dc=example,dc=com',null,1);
++ * draw_jpeg_photo(0,'cn=Bob,ou=People,dc=example,dc=com',0,"jpegPhoto",true,array('img_opts'=>"border: 1px; width: 150px"));
++ * draw_jpeg_photo(1,'cn=Fred,ou=People,dc=example,dc=com',1,null);
+ * </code>
+ *
+ * @param object The Server to get the image from.
+@@ -2046,7 +2046,7 @@ function ldap_error_msg($msg,$errnum) {
+ * @param array Specifies optional image and CSS style attributes for the table tag. Supported keys are
+ * fixed_width, fixed_height, img_opts.
+ */
+-function draw_jpeg_photo($server,$dn,$attr_name='jpegphoto',$index,$draw_delete_buttons=false,$options=array()) {
++function draw_jpeg_photo($server,$dn,$index,$attr_name='jpegphoto',$draw_delete_buttons=false,$options=array()) {
+ if (DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))
+ debug_log('Entered (%%)',1,0,__FILE__,__LINE__,__METHOD__,$fargs);
+