Closed (fixed)
Project:
X Autoload
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2013 at 12:20 UTC
Updated:
29 May 2013 at 22:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
clivelinsell commentedThis is currently causing a problem using XAutoload with the Crumbs module (http://drupal.org/project/crumbs)
Any news on a fix? I'd be happy to provide a patch myself if you can point me in the right direction...
Thanks
Comment #2
donquixote commentedHi!
I am currently traveling, so don't have that much time to look into this.
I know that I fixed the bug somewhere locally, and it was not that hard.. but I don't know where to find it atm :(
The places to look would be
lib/ClassFinder/Prefix.php
lib/ClassFinder/NamespaceOrPrefix.php
each in the findFile() method.
I think what I did was to totally block class loading if the first character is an underscore.
But instead you could say that the underscore will be part of the first fragment..
Could you try this patch?
Comment #3
donquixote commented..
Comment #4
clivelinsell commentedPatch in #2 has done the trick, thank you very much :)
Comment #5
donquixote commentedFixed in 7.x-3.1
Comment #6
donquixote commentedTo be fair, this was a bug. Not a task.
Comment #7
donquixote commentedJust enabled the automated testing for issues.. let's try if this works :)
Comment #8
donquixote commentedAnd of course it is still fixed.