Bug#1153039: trixie-pu: package gosa/2.8~git20230203.10abe45+dfsg-19+deb13u1
Mike Gabriel
mike.gabriel at das-netzwerkteam.de
Wed Nov 4 19:15:42 GMT 2026
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: gosa at packages.debian.org, debian-edu at lists.debian.org
Control: affects -1 + src:gosa
User: release.debian.org at packages.debian.org
Usertags: pu
Please accept upload of gosa 2.8~git20230203.10abe45+dfsg-19+deb13u1 to Debian trixie.
[ Reason ]
Fix various PHP 8.4 deprecation warnings and incompatibility issues.
[ Impact ]
GOsa² remains broken, esp. problematic to Debian Edu.
[ Tests ]
Tested on Debian Edu mainserver.
[ Risks ]
Only for users of GOsa² and Debian Edu.
[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
+gosa (2.8~git20230203.10abe45+dfsg-19+deb13u1) trixie; urgency=medium
+
+ [ Daniel Teichmann ]
+ * debian/patches:
+ + Add 1156_fix-syntax-error-class_userinfo.patch. Fix deprecated syntax for
+ PHP 8.0+. (Closes: #1147713).
+ + Add 2011_remove-imap-dep-for-setup.patch: Removes setup dep of php-imap.
+ (Closes: #1128411)
+ + Add 1157_php84-deprecated-static-class-plinfo.patch. Fix deprecated use of
+ get_class() without params. (Closes: #1147711).
+
+ [ Serhii Horichenko ]
+ * debian/patches:
+ + Update 1156_fix-syntax-error-class_userinfo.patch (Closes: #1147713).
+ + Update 1157_php84-deprecated-static-class-plinfo.patch for another list
+ of files (Closes: #1147710, #1147711).
+ + Add 1158_php84-deprecated-constant-e_strict.patch: Fix PHP 8.4 deprecated
+ use of the constant E_STRICT (Closes: #1148053).
+ + Add 1159_php8_removed-get-magic-quotes-gpc.patch. Fix removed function in
+ PHP 8.0+.
+
+ [ Mike Gabriel ]
+ * debian/patches:
+ + Rebase 1023, 1053, 1064, 1099, 1102, 1149, 1154, 1155, 1157, 1159.
+ + Fix 1157_php84-deprecated-static-class-plinfo.patch. Move various changes
+ over to gosa-plugins-systems and gosa-plugins-mailaddress src:pkgs.
+
+ -- Mike Gabriel <sunweaver at debian.org> Tue, 03 Nov 2026 16:57:44 +0100
[ Other info ]
Getting this package into trixie before the Debian 13.8 point release
will be highly appreciated!!!
This upload is important to the Debian Edu team.
-------------- next part --------------
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/changelog gosa-2.8~git20230203.10abe45+dfsg/debian/changelog
--- gosa-2.8~git20230203.10abe45+dfsg/debian/changelog 2025-04-09 11:35:20.000000000 +0200
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/changelog 2026-11-03 16:57:44.000000000 +0100
@@ -1,3 +1,32 @@
+gosa (2.8~git20230203.10abe45+dfsg-19+deb13u1) trixie; urgency=medium
+
+ [ Daniel Teichmann ]
+ * debian/patches:
+ + Add 1156_fix-syntax-error-class_userinfo.patch. Fix deprecated syntax for
+ PHP 8.0+. (Closes: #1147713).
+ + Add 2011_remove-imap-dep-for-setup.patch: Removes setup dep of php-imap.
+ (Closes: #1128411)
+ + Add 1157_php84-deprecated-static-class-plinfo.patch. Fix deprecated use of
+ get_class() without params. (Closes: #1147711).
+
+ [ Serhii Horichenko ]
+ * debian/patches:
+ + Update 1156_fix-syntax-error-class_userinfo.patch (Closes: #1147713).
+ + Update 1157_php84-deprecated-static-class-plinfo.patch for another list
+ of files (Closes: #1147710, #1147711).
+ + Add 1158_php84-deprecated-constant-e_strict.patch: Fix PHP 8.4 deprecated
+ use of the constant E_STRICT (Closes: #1148053).
+ + Add 1159_php8_removed-get-magic-quotes-gpc.patch. Fix removed function in
+ PHP 8.0+.
+
+ [ Mike Gabriel ]
+ * debian/patches:
+ + Rebase 1023, 1053, 1064, 1099, 1102, 1149, 1154, 1155, 1157, 1159.
+ + Fix 1157_php84-deprecated-static-class-plinfo.patch. Move various changes
+ over to gosa-plugins-systems and gosa-plugins-mailaddress src:pkgs.
+
+ -- Mike Gabriel <sunweaver at debian.org> Tue, 03 Nov 2026 16:57:44 +0100
+
gosa (2.8~git20230203.10abe45+dfsg-19) unstable; urgency=medium
* debian/control:
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1023_fix-icon-labelling-with-default-theme.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1023_fix-icon-labelling-with-default-theme.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1023_fix-icon-labelling-with-default-theme.patch 2023-08-17 06:33:48.000000000 +0200
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1023_fix-icon-labelling-with-default-theme.patch 2026-09-25 12:44:52.000000000 +0200
@@ -3,7 +3,7 @@
--- a/include/functions.inc
+++ b/include/functions.inc
-@@ -3663,6 +3663,14 @@
+@@ -3660,6 +3660,14 @@
global $BASE_DIR;
$label= null;
@@ -18,7 +18,7 @@
$theme = getThemeName();
switch ($theme) {
-@@ -3694,14 +3702,6 @@
+@@ -3691,14 +3699,6 @@
return "";
}
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1053_dont-count-ldap-result-object-if-false.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1053_dont-count-ldap-result-object-if-false.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1053_dont-count-ldap-result-object-if-false.patch 2024-07-24 15:22:47.000000000 +0200
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1053_dont-count-ldap-result-object-if-false.patch 2026-09-25 12:44:52.000000000 +0200
@@ -3,7 +3,7 @@
--- a/include/functions.inc
+++ b/include/functions.inc
-@@ -3803,7 +3803,12 @@
+@@ -3800,7 +3800,12 @@
array('dn'));
// If we haven't created the character-detection object, then create it now.
@@ -17,7 +17,7 @@
if(!$cnt){
$obj = array();
$obj['objectClass'] = array('top','organization');
-@@ -3819,7 +3824,12 @@
+@@ -3816,7 +3821,12 @@
$res = ldap_list($ldapCID, $config->current['BASE'],
"(&(o=".$filterName.")(objectClass=organization))",
array('dn','o'));
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1064_include-class_listing.inc-Fix-broken-actions-menu.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1064_include-class_listing.inc-Fix-broken-actions-menu.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1064_include-class_listing.inc-Fix-broken-actions-menu.patch 2024-08-23 15:26:27.000000000 +0200
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1064_include-class_listing.inc-Fix-broken-actions-menu.patch 2026-09-25 12:44:52.000000000 +0200
@@ -7,11 +7,9 @@
include/class_listing.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-diff --git a/include/class_listing.inc b/include/class_listing.inc
-index 21eba01a7..bc41df47c 100644
--- a/include/class_listing.inc
+++ b/include/class_listing.inc
-@@ -1729,7 +1729,7 @@ class listing
+@@ -1746,7 +1746,7 @@
$action['action'] = [$action['action']];
}
@@ -20,6 +18,3 @@
--$level;
$separator = '';
continue 2;
---
-2.39.2
-
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1099_remove-debug-code.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1099_remove-debug-code.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1099_remove-debug-code.patch 2023-12-03 08:11:48.000000000 +0100
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1099_remove-debug-code.patch 2026-09-25 12:44:52.000000000 +0200
@@ -1,6 +1,6 @@
--- a/plugins/admin/users/class_userManagement.inc
+++ b/plugins/admin/users/class_userManagement.inc
-@@ -323,10 +323,6 @@
+@@ -317,10 +317,6 @@
$dn = $this->dn;
$acl = $this->ui->get_permissions($dn, "users/password");
$cacl= $this->ui->get_permissions($dn, "users/user");
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1102_style-robustness.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1102_style-robustness.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1102_style-robustness.patch 2023-08-17 06:24:19.000000000 +0200
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1102_style-robustness.patch 2026-09-25 12:44:52.000000000 +0200
@@ -3,7 +3,7 @@
--- a/include/functions.inc
+++ b/include/functions.inc
-@@ -3688,6 +3688,11 @@
+@@ -3685,6 +3685,11 @@
}
$styles= session::global_get('img-styles');
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1149_gosa-fix-filterlocklabelimage.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1149_gosa-fix-filterlocklabelimage.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1149_gosa-fix-filterlocklabelimage.patch 2023-12-03 08:11:48.000000000 +0100
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1149_gosa-fix-filterlocklabelimage.patch 2026-09-25 12:44:52.000000000 +0200
@@ -3,7 +3,7 @@
--- a/plugins/admin/users/class_userManagement.inc
+++ b/plugins/admin/users/class_userManagement.inc
-@@ -907,7 +907,7 @@
+@@ -901,7 +901,7 @@
}
@@ -12,7 +12,7 @@
{
$theme = getThemeName();
-@@ -947,7 +947,7 @@
+@@ -941,7 +941,7 @@
}
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1154_skip-DN-when-processing-existing-account-settings.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1154_skip-DN-when-processing-existing-account-settings.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1154_skip-DN-when-processing-existing-account-settings.patch 2023-08-17 06:24:19.000000000 +0200
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1154_skip-DN-when-processing-existing-account-settings.patch 2026-09-25 12:44:52.000000000 +0200
@@ -3,7 +3,7 @@
--- a/include/functions.inc
+++ b/include/functions.inc
-@@ -2972,7 +2972,8 @@
+@@ -2969,7 +2969,8 @@
// Prepare a special attribute list, which will be used for event hook calls
$attrsEvent = array();
foreach($initialAttrs as $name => $value){
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1155_fix-uid-generation-when-many-uids-have-been-already-taken.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1155_fix-uid-generation-when-many-uids-have-been-already-taken.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1155_fix-uid-generation-when-many-uids-have-been-already-taken.patch 2023-08-17 06:33:48.000000000 +0200
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1155_fix-uid-generation-when-many-uids-have-been-already-taken.patch 2026-09-25 12:44:52.000000000 +0200
@@ -44,7 +44,7 @@
--- a/include/functions.inc
+++ b/include/functions.inc
-@@ -3937,10 +3937,10 @@
+@@ -3934,10 +3934,10 @@
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $attributes, "Prepare");
@@ -57,7 +57,7 @@
preg_match_all('/(\{?%([a-z0-9]+)(\[(([0-9]+)(\-([0-9]+))?)\])?\}?)/i', $rule ,$matches, PREG_SET_ORDER);
$replacements = array();
foreach($matches as $match){
-@@ -3948,13 +3948,22 @@
+@@ -3945,13 +3945,22 @@
# initialize the match's replacement array...
$replacements[$match[0]] = array();
@@ -81,7 +81,7 @@
$tmp = " ".$attributes[$match[2]];
$replacements[$match[0]][] = trim($tmp[$match[5]]);
}
-@@ -3963,7 +3972,7 @@
+@@ -3960,7 +3969,7 @@
}else{
$str = "";
for($i=$match[5]; $i<= $match[7]; $i++){
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1156_fix-syntax-error-class_userinfo.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1156_fix-syntax-error-class_userinfo.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1156_fix-syntax-error-class_userinfo.patch 1970-01-01 01:00:00.000000000 +0100
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1156_fix-syntax-error-class_userinfo.patch 2026-09-25 12:44:52.000000000 +0200
@@ -0,0 +1,18 @@
+Author: Daniel Teichmann <daniel.teichmann at das-netzwerkteam.de>
+Description: Fix syntax error in class_userinfo.inc (PHP 8.0+)
+Bug-Debian: #1147713
+
+--- a/include/class_userinfo.inc
++++ b/include/class_userinfo.inc
+@@ -219,9 +219,9 @@
+ $without_self_acl[$sdn][$dn] = $this->ACL[$dn];
+ foreach($without_self_acl[$sdn][$dn] as $acl_id => $acl_set){
+
+- /* Remember which ACL set has speicial user filter
++ /* Remember which ACL set has special user filter
+ */
+- if(isset($acl_set['filter']{1})){
++ if(isset($acl_set['filter'][1])){
+ $this->ACLperPath_usesFilter[$sdn] = TRUE;
+ }
+
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1157_php84-deprecated-static-class-plinfo.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1157_php84-deprecated-static-class-plinfo.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1157_php84-deprecated-static-class-plinfo.patch 1970-01-01 01:00:00.000000000 +0100
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1157_php84-deprecated-static-class-plinfo.patch 2026-09-25 12:44:52.000000000 +0200
@@ -0,0 +1,70 @@
+Author: Daniel Teichmann <daniel.teichmann at das-netzwerkteam.de>
+Description: Fix deprecated use of get_class() without params. See https://www.php.net/manual/en/migration83.deprecated.php
+Bug-Debian: #1147710, #1147711
+
+--- a/include/class_core.inc
++++ b/include/class_core.inc
+@@ -225,7 +225,7 @@
+ 'gosaProperties' => '>=2.7',
+ 'gosaConfig' => '>=2.7'
+ ),
+- 'onFailureDisablePlugin' => array(get_class())
++ 'onFailureDisablePlugin' => array(static::class)
+ ),
+
+
+--- a/plugins/admin/acl/class_aclRole.inc
++++ b/plugins/admin/acl/class_aclRole.inc
+@@ -749,7 +749,7 @@
+ "plCategory" => array("acl"),
+ "plRequirements"=> array(
+ 'ldapSchema' => array('gosaAcl' => '>=2.7'),
+- 'onFailureDisablePlugin' => array(get_class(), 'aclManagement')
++ 'onFailureDisablePlugin' => array(static::class, 'aclManagement')
+ ),
+ "plProperties" =>
+ array(
+--- a/plugins/admin/departments/class_department.inc
++++ b/plugins/admin/departments/class_department.inc
+@@ -660,7 +660,7 @@
+ "plSection" => array("administration"),
+ "plRequirements"=> array(
+ 'ldapSchema' => array('gosaDepartment' => '>=2.7'),
+- 'onFailureDisablePlugin' => array(get_class(),'departmentManagement',
++ 'onFailureDisablePlugin' => array(static::class,'departmentManagement',
+ 'country','dcObject','domain','locality','organization')
+ ),
+
+--- a/plugins/admin/ogroups/class_ogroup.inc
++++ b/plugins/admin/ogroups/class_ogroup.inc
+@@ -923,7 +923,7 @@
+ "plSection" => array("administration"),
+ "plRequirements"=> array(
+ 'ldapSchema' => array('gosaGroupOfNames' => '>=2.7'),
+- 'onFailureDisablePlugin' => array(get_class(), 'ogroupManagement')
++ 'onFailureDisablePlugin' => array(static::class, 'ogroupManagement')
+ ),
+ "plCategory" => array("ogroups" => array("description" => _("Object groups"),
+ "objectClass" => "gosaGroupOfNames")),
+--- a/plugins/personal/generic/class_user.inc
++++ b/plugins/personal/generic/class_user.inc
+@@ -1704,7 +1704,7 @@
+ 'gosaAccount' => '>=2.7',
+ 'gosaUserTemplate' => '>=2.7'
+ ),
+- 'onFailureDisablePlugin' => array(get_class(),'userManagement', 'user')
++ 'onFailureDisablePlugin' => array(static::class, 'userManagement', 'user')
+ ),
+
+ "plProperties" => array(
+--- a/plugins/personal/posix/class_posixAccount.inc
++++ b/plugins/personal/posix/class_posixAccount.inc
+@@ -1407,7 +1407,7 @@
+ "plOptions" => array(),
+ "plRequirements"=> array(
+ 'ldapSchema' => array('posixAccount' => ''),
+- 'onFailureDisablePlugin' => array(get_class(), 'sambaAccount','netatalk','environment')
++ 'onFailureDisablePlugin' => array(static::class, 'sambaAccount','netatalk','environment')
+ ),
+
+ "plProvidedAcls" => array(
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1158_php84-deprecated-constant-e_strict.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1158_php84-deprecated-constant-e_strict.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1158_php84-deprecated-constant-e_strict.patch 1970-01-01 01:00:00.000000000 +0100
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1158_php84-deprecated-constant-e_strict.patch 2026-09-25 12:44:52.000000000 +0200
@@ -0,0 +1,138 @@
+Description: Fix PHP 8.4 deprecated use of the constant E_STRICT.
+Author: Serhii Horichenko <serhii.horichenko at freiesoftware.gmbh>
+Bug-Debian: #1148053
+--- a/html/getbin.php
++++ b/html/getbin.php
+@@ -49,7 +49,7 @@
+ }
+
+ echo session::get('binary');
+-error_reporting (E_ALL | E_STRICT);
++error_reporting (E_ALL);
+
+ // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+ ?>
+--- a/html/helpviewer.php
++++ b/html/helpviewer.php
+@@ -25,7 +25,7 @@
+ @require_once ("functions.inc");
+ @require_once ("functions_helpviewer.inc");
+
+-error_reporting(E_ALL | E_STRICT);
++error_reporting(E_ALL);
+ restore_error_handler();
+ header("Content-type: text/html; charset=UTF-8");
+
+--- a/html/index.php
++++ b/html/index.php
+@@ -34,7 +34,7 @@
+ function displayLogin()
+ {
+ global $smarty,$message,$config,$ssl,$error_collector, $BASE_DIR;
+- error_reporting(E_ALL | E_STRICT);
++ error_reporting(E_ALL);
+
+ /* Check theme compatibility */
+ $theme = $config->get_cfg_value("core", 'theme');
+--- a/include/functions_helpviewer.inc
++++ b/include/functions_helpviewer.inc
+@@ -278,7 +278,7 @@
+ session::un_set('parsed_search_keyword');
+ session::set('parsed_search_keyword',"");
+
+- error_reporting(E_ALL | E_STRICT);
++ error_reporting(E_ALL);
+
+ /* prepare searchwords */
+ $word = trim($word);
+--- a/include/php_setup.inc
++++ b/include/php_setup.inc
+@@ -35,20 +35,20 @@
+ * e.g. @call_function_but_hide_errors()
+ */
+ if (error_reporting() == ERROR_SUPPRESSED){
+- set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT) ;
++ set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE) ;
+ return;
+ }
+
+ /* Workaround for buggy imap_open error outputs */
+ if (preg_match('/imap_open/', $errstr)){
+- set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT) ;
++ set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE) ;
+ return;
+ }
+
+ /* Hide ldap size limit messages */
+ if (preg_match('/ldap_error/', $errstr)){
+ if (preg_match('/sizelimit/', $errstr)){
+- set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT) ;
++ set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE) ;
+ return;
+ }
+ }
+@@ -56,7 +56,7 @@
+ /* Hide 'ldap_(search|read)(): Search: No such object' messages */
+ if (preg_match('/ldap_(search|read)/', $errstr)){
+ if (preg_match('/No such object/', $errstr)){
+- set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT) ;
++ set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE) ;
+ return;
+ }
+ }
+@@ -69,7 +69,7 @@
+ new log("view","error","",array(),"PHP error: $errstr ($errfile, line $errline)");
+ }
+
+- set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT) ;
++ set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE) ;
+ return;
+ }
+
+@@ -228,7 +228,7 @@
+ $error_collector.= "</table>";
+
+ /* Flush in case of fatal errors */
+- set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT) ;
++ set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE) ;
+ if (preg_match('/^fatal/i', $errstr)){
+ echo $error_collector."</div>";
+ flush();
+@@ -291,13 +291,13 @@
+ /* Get base dir for reference */
+ $BASE_DIR= dirname(dirname(__FILE__));
+ $ROOT_DIR= $BASE_DIR."/html";
+-error_reporting (E_ALL | E_STRICT);
++error_reporting (E_ALL);
+
+ /* Register error handler */
+ $error_collector= "";
+ $error_collector_mailto= "";
+
+-set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT) ;
++set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE) ;
+
+ $variables_order= "ES";
+ ini_set("register_globals",0);
+--- a/plugins/admin/ogroups/class_ogroup.inc
++++ b/plugins/admin/ogroups/class_ogroup.inc
+@@ -386,7 +386,7 @@
+ } else {
+ $smarty->assign("combinedObjects", "$p1");
+ }
+- error_reporting(E_ALL | E_STRICT);
++ error_reporting(E_ALL);
+ }
+
+ /* Assign variables */
+--- a/plugins/personal/posix/class_posixAccount.inc
++++ b/plugins/personal/posix/class_posixAccount.inc
+@@ -1088,7 +1088,7 @@
+ $dsc= preg_replace ('/^Group of user/', _("Group of user"), $attrs["description"][0]);
+ $entry= $attrs["cn"][0]." [$dsc]";
+ }
+- error_reporting (E_ALL | E_STRICT);
++ error_reporting (E_ALL);
+
+ if(obj_is_writable($attrs['dn'],"groups/group","memberUid")){
+ $this->groupMembership[$attrs['dn']]= $entry;
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1159_php8_removed-get-magic-quotes-gpc.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1159_php8_removed-get-magic-quotes-gpc.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1159_php8_removed-get-magic-quotes-gpc.patch 1970-01-01 01:00:00.000000000 +0100
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/1159_php8_removed-get-magic-quotes-gpc.patch 2026-11-03 16:57:05.000000000 +0100
@@ -0,0 +1,47 @@
+Author: Serhii Horichenko <serhii.horichenko at freiesoftware.gmbh>
+Description: Function get_magic_quotes_gpc() is deprecated since PHP 7.4 and removed since PHP 8.0
+Compare with https://github.com/gosa-project/gosa-core/blob/main/include/functions.inc
+ function get_post(string $name)
+ function get_binary_post(string $name)
+
+--- a/include/functions.inc
++++ b/include/functions.inc
+@@ -2785,22 +2785,14 @@
+ }
+
+ // Handle Posted Arrays
+- $tmp = array();
++ $tmp = [];
+ if(is_array($_POST[$name]) && !is_string($_POST[$name])){
+- if(version_compare(PHP_VERSION, '5.4.0', '<') && get_magic_quotes_gpc()){
+- array_walk_recursive($_POST, "stripcslashes");
+- }
+ $tmp = $_POST;
+ return($tmp[$name]);
+ }else{
+-
+- if(version_compare(PHP_VERSION, '5.4.0', '<') && get_magic_quotes_gpc()){
+- $val = stripcslashes($_POST[$name]);
+- }else{
+- $val = $_POST[$name];
+- }
++ $val = $_POST[$name];
+ }
+- return($val);
++ return $val;
+ }
+
+
+@@ -2820,11 +2812,7 @@
+ }
+
+ $p = str_replace('\0', '', $_POST[$name]);
+- if(get_magic_quotes_gpc()){
+- return(stripcslashes($p));
+- }else{
+- return($_POST[$p]);
+- }
++ return($_POST[$p]);
+ }
+
+ function set_post($value)
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/2011_remove-imap-dep-for-setup.patch gosa-2.8~git20230203.10abe45+dfsg/debian/patches/2011_remove-imap-dep-for-setup.patch
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/2011_remove-imap-dep-for-setup.patch 1970-01-01 01:00:00.000000000 +0100
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/2011_remove-imap-dep-for-setup.patch 2026-09-25 12:44:52.000000000 +0200
@@ -0,0 +1,31 @@
+Description: Drop setup check for php-imap (see salsa commit 79e743dd0bf).
+Author: Daniel Teichmann <daniel.teichmann at das-netzwerkteam.de>
+
+--- a/setup/class_setupStep_Checks.inc
++++ b/setup/class_setupStep_Checks.inc
+@@ -71,7 +71,7 @@
+ $M = TRUE;
+ $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
+
+- /* Checking imap extension */
++ /* Checking LDAP extension */
+ $N = msgPool::checkingFor("LDAP");
+ $D = _("GOsa requires this module to talk with your LDAP server.");
+ $S = msgPool::installPhpModule("LDAP");
+@@ -111,15 +111,7 @@
+ $M = FALSE;
+ $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
+
+- /* Is imap module available */
+- $N = msgPool::checkingFor("IMAP");
+- $D = _("GOsa requires this module to talk to an IMAP server.");
+- $S = msgPool::installPhpModule("IMAP");
+- $R = is_callable("imap_open");
+- $M = TRUE;
+- $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
+-
+- /* Is imap module available */
++ /* Is mbstring module available */
+ $N = msgPool::checkingFor(_("mbstring"));
+ $D = _("GOsa requires this module to handle Unicode strings.");
+ $S = msgPool::installPhpModule("mbstring");
diff -Nru gosa-2.8~git20230203.10abe45+dfsg/debian/patches/series gosa-2.8~git20230203.10abe45+dfsg/debian/patches/series
--- gosa-2.8~git20230203.10abe45+dfsg/debian/patches/series 2024-08-23 15:26:27.000000000 +0200
+++ gosa-2.8~git20230203.10abe45+dfsg/debian/patches/series 2026-11-03 16:57:05.000000000 +0100
@@ -81,3 +81,8 @@
1057_fix-ldap-rename.patch
1058_fix-ogroup-creation.patch
1064_include-class_listing.inc-Fix-broken-actions-menu.patch
+1156_fix-syntax-error-class_userinfo.patch
+2011_remove-imap-dep-for-setup.patch
+1157_php84-deprecated-static-class-plinfo.patch
+1158_php84-deprecated-constant-e_strict.patch
+1159_php8_removed-get-magic-quotes-gpc.patch
More information about the Debian-edu-pkg-team
mailing list