Modify ↓
Ticket #24 (closed defect: fixed)
Cannot import class file located in a directory named that includes dot
| Reported by: | anonymous | Owned by: | mrook |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2.0 |
| Component: | Version: | 2.2.0RC1 | |
| Keywords: | Cc: |
Description
Cannot import class file located in a directory named that includes dot(such as "Foo-x.y.z\FooTask.php").
I propose a solution to fix it.
Phing::import() {
:
$path = strtr($dotPath, '.', DIRECTORY_SEPARATOR) . ".php";
:
}
to
Phing::import() {
:
$dotClassname = basename($dotPath);
$dotClassnamePos = strlen($dotPath) - strlen($dotClassname);
$classFile = strtr($dotClassname, '.', DIRECTORY_SEPARATOR) . ".php";
$path = substr_replace($dotPath, $classFile, $dotClassnamePos);
:
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

This is a problem, your patch looks okay, thanks!