Commit e982b399 authored by Laurent's avatar Laurent
Browse files

Windows compatibility

parent 363f6e83
......@@ -60,6 +60,9 @@ class Zend_Loader
throw new Zend_Exception('Directory argument must be a string or an array');
}
if ((false !== strpos($class, '\\')) || (false !== strpos($class, 'PHPUnit/Extensions')))
return;
// autodiscover the path from the class name
$file = str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';
if (!empty($dirs)) {
......@@ -79,8 +82,6 @@ class Zend_Loader
$file = basename($file);
self::loadFile($file, $dirs, true);
} else {
if ((false !== strpos($file, '\\')) || (false !== strpos($file, 'PHPUnit/Extensions')))
return;
self::_securityCheck($file);
include_once $file;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment