mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:49:10 +01:00
fixing warnings generated by php 5.3.8 is_a($obj) trying to autoload huge strings
This commit is contained in:
parent
923c78940e
commit
c6280b9874
@ -1438,6 +1438,9 @@ function try_lang($key,$vars=null)
|
|||||||
*/
|
*/
|
||||||
function __autoload($class)
|
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);
|
$components = explode('_',$class);
|
||||||
$app = array_shift($components);
|
$app = array_shift($components);
|
||||||
// classes using the new naming schema app_class_name, eg. admin_cmd
|
// classes using the new naming schema app_class_name, eg. admin_cmd
|
||||||
|
Loading…
Reference in New Issue
Block a user