peej/phpdoctor — Issue #54: phpDoctor->makeAbsolutePath mangles any path containing a directory ending in '.'
Author: NuclearDog
Created: 2011-11-09 06:48:53+00:00
State: open

My code repository is located at:

/usr/local/www/domain.com/subdomain./htdocs/mycode/

The issue occurs in that when phpDoctor attempts to resolve this path, it ends up mangling it and errors out as the directory no longer exists (and my account does not have permission to write to the generated one).

The issue seems to occur with line 471:

$absPath = str_replace('./', '', $absPath);

Which causes the folder to resolve to:

/usr/local/www/domain.com/subdomainhtdocs/mycode/

I have commented the line out and it is working for me just fine, but I'm not sure why it was there in the first place, so I do not know exactly what side-effects this would have, or what the line was trying to accomplish in the first place (to attempt to resolve the issue in a way that does not cause issues with some other type of path) - otherwise I'd just submit a patch.

Other than that everything seems to be working for me! :)