[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Package: gosa
Version: 2.7.4+reloaded2-3
Severity: normal
User: debian-edu@lists.debian.org
Usertags: debian-edu
X-Debbugs-Cc: debian-edu@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@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@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgpkbrMPXc20s.pgp
Description: Digitale PGP-Signatur


Reply to: