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

#800679#5
Date:
2015-10-02 10:58:43 UTC
From:
To:
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

#800679#10
Date:
2026-03-12 14:52:41 UTC
From:
To:
Hey Mike,

I’d suggest closing this issue since a metric ton was changed since 2.7 and
it’s not reproducible on Tjener Bookworm or Trixie.

If it should re-appears we just re-open this bug report then, I guess.

Greetings Daniel