mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1367: Include path not passed to ClassLoader when autoloading Doctrine library from directory #1717
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Sep 8, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user vanit:
The bug is in ORM\Tools\Setup.php in the function registerAutoloadDirectory($directory), specificially the following line:
$loader = new ClassLoader("Doctrine");
Which should actually be:
$loader = new ClassLoader("Doctrine", $directory);
As it stands the actual directory location is not being passed to the ClassLoader while attempting to autoload the Doctrine from that specified directory. Under certain circumstances this causes loading to completely fail (although in cases where this function is being called from a parent directory to Doctrine this seems to go unnoticed - perhaps why this was not picked up sooner?)
@doctrinebot commented on GitHub (Sep 25, 2011):
Comment created by @beberlei:
Fixed and merged into 2.1.x
@doctrinebot commented on GitHub (Sep 25, 2011):
Issue was closed with resolution "Fixed"