From: hickert Date: Wed, 5 Sep 2007 12:26:01 +0000 (+0000) Subject: Hide PHP5 OOP warnings. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d2f1f2ca215aade60daee19fb394ae460f786ef3;p=gosa.git Hide PHP5 OOP warnings. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7230 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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; }