|
|
@@ -90,6 +90,10 @@ class Zend_Tool_Framework_Loader_IncludePathLoader extends Zend_Tool_Framework_L
|
|
|
|
|
|
// iterate over the accepted items
|
|
|
foreach ($iterator as $item) {
|
|
|
+ $file = (string)$item;
|
|
|
+ if($this->_fileIsBlacklisted($file)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
|
|
|
// ensure that the same named file from separate include_paths is not loaded
|
|
|
$relativeItem = preg_replace('#^' . preg_quote($realIncludePath . DIRECTORY_SEPARATOR, '#') . '#', '', $item->getRealPath());
|
|
|
@@ -112,4 +116,23 @@ class Zend_Tool_Framework_Loader_IncludePathLoader extends Zend_Tool_Framework_L
|
|
|
return $files;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param string $file
|
|
|
+ * @return bool
|
|
|
+ */
|
|
|
+ protected function _fileIsBlacklisted($file)
|
|
|
+ {
|
|
|
+ $blacklist = array(
|
|
|
+ "PHPUnit".DIRECTORY_SEPARATOR."Framework",
|
|
|
+ "Zend".DIRECTORY_SEPARATOR."OpenId".DIRECTORY_SEPARATOR."Provider"
|
|
|
+ );
|
|
|
+
|
|
|
+ foreach($blacklist AS $blacklitedPattern) {
|
|
|
+ if(strpos($file, $blacklitedPattern) !== false) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|