From 86cf012b9fa0c7f0256e438d1b67562e3d0e03a8 Mon Sep 17 00:00:00 2001 From: cajus Date: Sat, 21 May 2005 20:43:19 +0000 Subject: [PATCH] Enabled PHP5 to run nearly error free git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@325 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/functions.inc b/include/functions.inc index a5bbe276f..613af8c67 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1513,16 +1513,25 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) { global $error_collector; - /* FIXME: workaround for buggy imap_open */ + /* Workaround for buggy imap_open error outputs */ if (preg_match('/imap_open/', $errstr)){ return; } - /* FIXME: workaround for PHP5 */ + /* FIXME: Workaround for PHP5 error message flooding. The new OOM + code want's us to use public/protected/private instead of flat + var declarations. For now I can't workaround this - let's ignore + the messages till the next major release which may drop support + for PHP4. */ if (preg_match('/var: Deprecated./', $errstr)){ return; } + /* FIXME: Same as above. Compatibility does error flooding.*/ + if (preg_match('/zend.ze1_compatibility_mode/', $errstr)){ + return; + } + /* Create header as needed */ if ($error_collector == ""){ if ($_SESSION['js']==FALSE){ -- 2.30.2