Your message dated Mon, 23 Nov 2020 17:04:14 +0000
with message-id <[email protected]>
and subject line Bug#964600: fixed in gosa 2.7.4+reloaded3-14
has caused the Debian Bug report #964600,
regarding deprecated implode() usage with PHP 7.4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
964600: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964600
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gosa
Version: 2.7.4+reloaded3-11
Severity: normal
Tags: upstream

Moin Mike,

while working on Debian Edu Bullseye, I noticed that a warning message 
pops when clicking several GUI items (PHP 7.4 in use).

Deprecated: implode(): Passing glue string after array is deprecated. 
Swap the parameters...

These warnings disappear with the attached changes applied.
There might be more files affected upstream.

Please check and test.

Wolfgang
diff -ur /usr/share/gosa/include/class_acl.inc modified/gosa/include/class_acl.inc
--- /usr/share/gosa/include/class_acl.inc	2020-04-20 07:32:48.000000000 +0200
+++ modified/gosa/include/class_acl.inc	2020-07-09 12:17:52.002910541 +0200
@@ -306,9 +306,9 @@
 
     function convertForListing($entry)
     {
-        $member = implode($entry['members'],", ");
+        $member = implode(", ",$entry['members']);
         if(isset($entry['acl']) && is_array($entry['acl'])){
-            $acl = implode(array_keys($entry['acl']),", ");
+            $acl = implode(", ",array_keys($entry['acl']));
         }else{
             $acl="";
         }
@@ -638,7 +638,7 @@
                 // Create a map of all used sections, this allows us to simply hide the remove button 
                 //  if no acl is configured for the given section 
                 // e.g. ';all;department/country;users/user;
-                $usedList = ";".implode(array_keys($this->aclContents),';').";";
+                $usedList = ";".implode(';',array_keys($this->aclContents)).";";
 
                 /* Add settings for all categories to the (permanent) list */
                 $data = $lData = array();
diff -ur /usr/share/gosa/plugins/admin/acl/class_aclRole.inc modified/gosa/plugins/admin/acl/class_aclRole.inc
--- /usr/share/gosa/plugins/admin/acl/class_aclRole.inc	2020-04-20 07:32:48.000000000 +0200
+++ modified/gosa/plugins/admin/acl/class_aclRole.inc	2020-07-09 12:15:59.202864908 +0200
@@ -194,9 +194,9 @@
 
   function convertForListing($entry)
   {
-    $member = implode($entry['members'],", ");
-    $acl = implode(array_keys($entry['acl']),", ");
-    $type = implode(array_keys($entry['acl']),", ");
+    $member = implode(", ",$entry['members']);
+    $acl = implode(", ",array_keys($entry['acl']));
+    $type = implode(", ",array_keys($entry['acl']));
     return(array('data' => array($acl, $this->aclTypes[$entry['type']])));
   }
 
@@ -385,7 +385,7 @@
       // Create a map of all used sections, this allows us to simply hide the remove button
       //  if no acl is configured for the given section
       // e.g. ';all;department/country;users/user;
-      $usedList = ";".implode(array_keys($this->aclContents),';').";";
+      $usedList = ";".implode(';',array_keys($this->aclContents)).";";
 
       /* Add settings for all categories to the (permanent) list */
       foreach ($this->aclObjects as $section => $dsc){
diff -ur /usr/share/gosa/plugins/admin/departments/class_department.inc modified/gosa/plugins/admin/departments/class_department.inc
--- /usr/share/gosa/plugins/admin/departments/class_department.inc	2020-04-20 07:32:48.000000000 +0200
+++ modified/gosa/plugins/admin/departments/class_department.inc	2020-07-09 12:01:38.365073986 +0200
@@ -172,7 +172,7 @@
         $smarty= get_smarty();
 
         // Clear manager attribute if requested
-        if(preg_match("/ removeManager/i", " ".implode(array_keys($_POST),' ')." ")){
+        if(preg_match("/ removeManager/i", " ".implode(' ',array_keys($_POST))." ")){
             $this->manager = "";
             $this->manager_name = "";
         }
@@ -181,7 +181,7 @@
         if($this->manager_enabled){
 
             // Allow to select a new inetOrgPersion:manager
-            if(preg_match("/ editManager/i", " ".implode(array_keys($_POST),' ')." ")){
+            if(preg_match("/ editManager/i", " ".implode(' ',array_keys($_POST))." ")){
                 $this->dialog = new singleUserSelect($this->config, get_userinfo());
             }
             if($this->dialog && count($this->dialog->detectPostActions())){
diff -ur /usr/share/gosa/plugins/generic/references/class_aclResolver.inc modified/gosa/plugins/generic/references/class_aclResolver.inc
--- /usr/share/gosa/plugins/generic/references/class_aclResolver.inc	2011-07-27 08:38:29.000000000 +0200
+++ modified/gosa/plugins/generic/references/class_aclResolver.inc	2020-07-09 12:23:40.271141058 +0200
@@ -284,8 +284,8 @@
                     }                    
                     if(!empty($filter)) $filter =sprintf($filter_tpl,$class,$filter);
                     if(!empty($defs)) $defs = sprintf($acl_tpl,$class,$defs);
-                    if(count($users))  $umem = sprintf($umem_tpl,$class,"<li>".implode($users,'</li><li>')."</li>");
-                    if(count($groups)) $gmem = sprintf($gmem_tpl,$class,"<li>".implode($groups,'</li><li>')."</li>");
+                    if(count($users))  $umem = sprintf($umem_tpl,$class,"<li>".implode('</li><li>',$users)."</li>");
+                    if(count($groups)) $gmem = sprintf($gmem_tpl,$class,"<li>".implode('</li><li>',$groups)."</li>");
                     $str.= sprintf($tpl,$class, image($image), $dn, $aclType, $filter.$gmem.$umem.$defs);
                 }
             }
diff -ur /usr/share/gosa/plugins/personal/generic/class_user.inc modified/gosa/plugins/personal/generic/class_user.inc
--- /usr/share/gosa/plugins/personal/generic/class_user.inc	2020-04-20 07:32:48.000000000 +0200
+++ modified/gosa/plugins/personal/generic/class_user.inc	2020-07-09 11:41:18.553441180 +0200
@@ -306,13 +306,13 @@
     }
 
     // Clear manager attribute if requested
-    if(preg_match("/ removeManager/i", " ".implode(array_keys($_POST),' ')." ")){
+    if(preg_match("/ removeManager/i", " ".implode(' ',array_keys($_POST))." ")){
       $this->manager = "";
       $this->manager_name = "";
     }
 
     // Allow to select a new inetOrgPersion:manager 
-    if(preg_match("/ editManager/i", " ".implode(array_keys($_POST),' ')." ")){
+    if(preg_match("/ editManager/i", " ".implode(' ',array_keys($_POST))." ")){
       $this->dialog = new singleUserSelect($this->config, get_userinfo());
     }
     if($this->dialog && $this->dialog instanceOf singleUserSelect && count($this->dialog->detectPostActions())){

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: gosa
Source-Version: 2.7.4+reloaded3-14
Done: Mike Gabriel <[email protected]>

We believe that the bug you reported is fixed in the latest version of
gosa, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mike Gabriel <[email protected]> (supplier of updated gosa package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 23 Nov 2020 17:44:53 +0100
Source: gosa
Architecture: source
Version: 2.7.4+reloaded3-14
Distribution: unstable
Urgency: medium
Maintainer: Debian Edu Packaging Team 
<[email protected]>
Changed-By: Mike Gabriel <[email protected]>
Closes: 964600
Changes:
 gosa (2.7.4+reloaded3-14) unstable; urgency=medium
 .
   * debian/patches:
     + Add 1050_implode-syntax-php74.patch. Use PHP 7.4 compliant implode()
       syntax. (Closes: #964600).
   * debian/control:
     + Bump Standards-Version: to 4.5.1. No changes needed.
     + Bump DH compat level to version 13.
Checksums-Sha1:
 602982bdc8b5b9de9e3dbbac6923232b735f2b2a 14339 gosa_2.7.4+reloaded3-14.dsc
 2fc08949cc60c46cadc82fd2b3645a73ddd57bc8 100040 
gosa_2.7.4+reloaded3-14.debian.tar.xz
 9028117dce58a666a2d593eafd280baddd717931 5825 
gosa_2.7.4+reloaded3-14_source.buildinfo
Checksums-Sha256:
 d68c28e3acd0dce923fff400ce50b47b27cff42f3788cd296dde3748b08d7b67 14339 
gosa_2.7.4+reloaded3-14.dsc
 7add0c8496bf3e5c9b877ded95c90f823fdb210946b463eefb59eafb2b5f4277 100040 
gosa_2.7.4+reloaded3-14.debian.tar.xz
 8cb5345d0749b1ed969c5dbd33ca4f215a48a5b6c9835e29fbf614d170fe7790 5825 
gosa_2.7.4+reloaded3-14_source.buildinfo
Files:
 8360bd07ad2c3da1eb154c8af66f7920 14339 web optional gosa_2.7.4+reloaded3-14.dsc
 94ef4254d83992a8c7a9922a0805d744 100040 web optional 
gosa_2.7.4+reloaded3-14.debian.tar.xz
 14d4649f31881c727572ab4863179c6c 5825 web optional 
gosa_2.7.4+reloaded3-14_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJJBAEBCAAzFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAl+76FIVHHN1bndlYXZl
ckBkZWJpYW4ub3JnAAoJEJr0azAldxsxCuMP/050hb5h+ErCa+3ptrYfGIe6n/c5
KDIpRYfyL3B7CQSXtye8d5EHv+4Xt9Ig2Xx2+YG4T7O9DPAKfs9gObE6i3Gq7E1I
HnB/SOmaaqh6pP8mggBHvTWEwbqIZpHnfajvBjy8HZNu+MR51MnQUEBDiK4u5o5Q
P7vFwFUUhqu/P6UcpSTIMewJW1UQi59VTgZ5pYfUO8kFzylZ8fJM7wv5Ch59042f
41NOw6ccfgVgcVHKOk2ELvGu81iKdkSF92kFLREWTNnjWow0nS8YaM/AUdIcIxYO
Ah03Wb/0gA+rYiez+uf6IkHTsiQ/wIDS6ig5z3kLXjrDy0FQsq4DKwpFsNEKEene
ncYMEmQiDeR63uKyvXKcO6dwnOFjkAyevI+kZBO1CzAF5H2dBnkeHNrLz1LN/TC2
dj3SREEnzxi9RM9tz1kv/Ihgxamm5HjBv3VD1ZeHfb833EjXwlC9IScdRxOGswGR
FXuiVnuXcR9karI0bXtEJHqanIf7wZln7rdxc8Ego7fCRBn3WH9MC2oFRwuCjKT7
bvXd57lS2+B5lef86YFMf+V9lX6N3qh6KpgqIkKT5jUZl/uZqxdxmw2R4KwjXT3s
T3NFGOne/I/SP0JilyQMNexxEzT6L3/qgqDirlGgm2LySrPNAcpFyHX45PEM46+M
TFqY+GfKqCBzTSAk
=r8w8
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to