From 988123bb73916ee76de0b25f607b1a479541be7d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 15 Nov 2011 12:22:47 +0000 Subject: [PATCH] fixing warnings generated by php 5.3.8 is_a($obj) trying to autoload huge strings --- phpgwapi/inc/common_functions.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index 09d8d30e5d..5177275fc7 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1438,6 +1438,9 @@ function try_lang($key,$vars=null) */ function __autoload($class) { + // fixing warnings generated by php 5.3.8 is_a($obj) trying to autoload huge strings + if (strlen($class) > 40) return; + $components = explode('_',$class); $app = array_shift($components); // classes using the new naming schema app_class_name, eg. admin_cmd