DDC-1367: Include path not passed to ClassLoader when autoloading Doctrine library from directory #1717

Closed
opened 2026-01-22 13:23:09 +01:00 by admin · 2 comments
Owner

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?)

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?)
admin added the Bug label 2026-01-22 13:23:09 +01:00
admin closed this issue 2026-01-22 13:23:11 +01:00
Author
Owner

@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): Comment created by @beberlei: Fixed and merged into 2.1.x
Author
Owner

@doctrinebot commented on GitHub (Sep 25, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Sep 25, 2011): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1717