From d2f1f2ca215aade60daee19fb394ae460f786ef3 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Sep 2007 12:26:01 +0000 Subject: [PATCH] Hide PHP5 OOP warnings. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7230 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/php_setup.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/php_setup.inc b/include/php_setup.inc index cf9c5cf6f..cbc0d1f87 100644 --- a/include/php_setup.inc +++ b/include/php_setup.inc @@ -45,7 +45,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) 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)){ + if (preg_match('/var: Deprecated./', $errstr) || preg_match("/Declaration of.*should be compatible/",$errstr)){ return; } -- 2.30.2