Bug#800679: PHP error: Array to string conversion in functions.inc (function: arrays_differ)

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Fri Oct 2 10:58:43 UTC 2015


Package: gosa
Version: 2.7.4+reloaded2-3
Severity: normal
User: debian-edu at lists.debian.org
Usertags: debian-edu
X-Debbugs-Cc: debian-edu at lists.debian.org

I see various messages like this on certain user actions in the log file:

Oct  2 11:32:10 tjener apache2: GOsa[<user>]: (view) error : PHP  
error: Array to string conversion  
(/usr/share/gosa/include/functions.inc, line 2359)
Oct  2 11:32:10 tjener apache2: GOsa[<user>]: (view) error : PHP  
error: Array to string conversion  
(/usr/share/gosa/include/functions.inc, line 2359)
Oct  2 11:32:10 tjener apache2: GOsa[<user>]: (view) error : PHP  
error: Array to string conversion  
(/usr/share/gosa/include/functions.inc, line 2359)
Oct  2 11:32:10 tjener apache2: GOsa[<user>]: (view) error : PHP  
error: Array to string conversion  
(/usr/share/gosa/include/functions.inc, line 2359)
Oct  2 11:32:10 tjener apache2: GOsa[<user>]: (view) error : PHP  
error: Array to string conversion  
(/usr/share/gosa/include/functions.inc, line 2359)
Oct  2 11:32:10 tjener apache2: GOsa[<user>]: (view) error : PHP  
error: Array to string conversion  
(/usr/share/gosa/include/functions.inc, line 2359)
Oct  2 11:32:10 tjener apache2: GOsa[<user>]: (view) error : PHP  
error: Array to string conversion  
(/usr/share/gosa/include/functions.inc, line 2359)

The issue comes up in function array_differs():

"""
function array_differs($src, $dst)
{
   /* If the count is differing, the arrays differ */
   if (count ($src) != count ($dst)){
     return (TRUE);
   }

   return (count(array_diff($src, $dst)) != 0);
}
"""

The array_differs() function is not used often, only here:

"""
root at tjener:/usr/share/gosa# grep -ri array_differs
include/functions.inc:function array_differs($src, $dst)
include/class_plugin.inc:        if  
(!array_differs($this->attrs[$index],$this->saved_attributes[$index])){
plugins/personal/generic/class_user.inc:    $this->is_modified |=   
array_differs($this->gosaLoginRestriction, $lR);
plugins/admin/systems/class_termDNS.inc:             
if(array_differs($newEntries['RECORDS'],$oldEntries['RECORDS'])){
"""

This report is mainly a reminder for me to hunt down this issue later.

Mike
-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.alioth.debian.org/pipermail/debian-edu-pkg-team/attachments/20151002/175d37b7/attachment.sig>


More information about the Debian-edu-pkg-team mailing list