From 1249bb00fff01530ab2980c14b8d4505e3264632 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 27 Apr 2007 13:05:25 +0000 Subject: [PATCH] Fixed problem with zend.ze1_compatibility_mode set to "on" and PHP5 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6207 594d385d-05f5-0310-b6e9-bd551577e9d8 --- Changelog | 5 +++++ html/index.php | 5 +++++ include/class_userinfo.inc | 1 - include/functions.inc | 3 +++ plugins/admin/applications/class_applicationParameters.inc | 2 +- 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index f76fd4bc6..299bbdc7c 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,10 @@ GOsa2 changelog =============== +* gosa 2.5.11 + - Add workaround for failing is_php4() when using PHP5 + with "zend.ze1_compatibility_mode" set to "On" + * gosa 2.5.10 - Included hook to make use of dynamic uid-bases - Included vacation date range specification @@ -12,6 +16,7 @@ GOsa2 changelog - Enabled 9 digits for gid-/uidNumbers - Fixed acl's for saving printers - Fixed saving of disabled samba acl's + - Added support for rfc2307bis compliant groups * gosa 2.5.9 - Fixed ldap tls connections when schema check was being used diff --git a/html/index.php b/html/index.php index b920dd7e4..f7c0fb079 100644 --- a/html/index.php +++ b/html/index.php @@ -281,6 +281,11 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){ $config->make_idepartments(); $_SESSION['config']= $config; + /* Take care about zend.ze1_compatiblity_mode */ + if (ini_get("zend.ze1_compatibility_mode") != 0){ + $_SESSION['PHP4COMPATIBLE']= TRUE; + } + /* are we using accountexpiration */ if((isset($config->data['MAIN']['ACCOUNT_EXPIRATION'])) && preg_match('/true/i', $config->data['MAIN']['ACCOUNT_EXPIRATION'])){ diff --git a/include/class_userinfo.inc b/include/class_userinfo.inc index 99e728610..77003f9e7 100644 --- a/include/class_userinfo.inc +++ b/include/class_userinfo.inc @@ -84,7 +84,6 @@ class userinfo $this->subtreeACL[$base][]= $attrs["gosaSubtreeACL"][$i]; } } - } } diff --git a/include/functions.inc b/include/functions.inc index c9f009892..04a9d91d1 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -2152,6 +2152,9 @@ function is_department_name_reserved($name,$base) function is_php4() { + if (isset($_SESSION['PHP4COMPATIBLE'])){ + return true; + } return (preg_match('/^4/', phpversion())); } diff --git a/plugins/admin/applications/class_applicationParameters.inc b/plugins/admin/applications/class_applicationParameters.inc index bc0714460..c21919f95 100644 --- a/plugins/admin/applications/class_applicationParameters.inc +++ b/plugins/admin/applications/class_applicationParameters.inc @@ -10,7 +10,7 @@ class applicationParameters extends plugin var $CopyPasteVars = array("option_name","option_value"); var $attributes= array("gosaApplicationParameter"); var $objectclasses= array(); -var $ui; + var $ui; function applicationParameters ($config, $dn= NULL, $parent= NULL) { -- 2.30.2