Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[DCOM-66][PR-55] Changed obsolete function ClassLoader::fileExistsInI…

…ncludePath() to native PHP implementation stream_resolve_include_path().
  • Loading branch information...
commit 4ff6196db1aae591f5dd8835b6a21a34a8e60502 1 parent 82a5a2a
@guilhermeblanco guilhermeblanco authored
Showing with 5 additions and 10 deletions.
  1. +4 −0 UPGRADE_TO_2_2
  2. +1 −10 lib/Doctrine/Common/ClassLoader.php
View
4 UPGRADE_TO_2_2
@@ -55,3 +55,7 @@ updating your project from Doctrine Common 2.1 to 2.2:
- Added support to MemcachedCache
- Added support to WincacheCache
+
+## ClassLoader Changes
+
+- ClassLoader::fileExistsInIncludePath() no longer exists. Use the native stream_resolve_include_path() PHP function
View
11 lib/Doctrine/Common/ClassLoader.php
@@ -184,7 +184,7 @@ public function canLoadClass($className)
return file_exists($this->includePath . DIRECTORY_SEPARATOR . $file);
}
- return (false !== stream_resolve_include_path($file));//self::fileExistsInIncludePath($file);
+ return (false !== stream_resolve_include_path($file));
}
/**
@@ -259,13 +259,4 @@ public static function getClassLoader($className)
return null;
}
-
- /**
- * @param string $file The file relative path.
- * @return boolean Whether file exists in include_path.
- */
- /*public static function fileExistsInIncludePath($file)
- {
- return (false !== stream_resolve_include_path($file));
- }*/
}
Please sign in to comment.
Something went wrong with that request. Please try again.