FIX Add test code to detect/test autoload conflict

This commit is contained in:
Laurent Destailleur 2016-05-13 19:23:56 +02:00
parent e6a95b2af9
commit 2308d28c19

View File

@ -263,6 +263,12 @@ class AutoLoader
* @return bool false unless className now exists
*/
private function loadLastResort($className, $loader = null) {
// DOL_LDR Add protection to avoid conflict with other autouploader
/*print 'Try to load '.$className."\n";
if (in_array($className, array('Google_Client')))
{
return false;
}*/
$loaders = array_unique(static::$rogueLoaders);
if (isset($loader)) {
if (false === array_search($loader, $loaders))