1
0
Fork 0

Use cross-platform absolute path check

pull/1743/head
Sander Marechal 2013-03-31 13:20:01 +02:00
parent d7697574ff
commit c10e25a945
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ EOF;
foreach ($autoloads['classmap'] as $dir) { foreach ($autoloads['classmap'] as $dir) {
foreach (ClassMapGenerator::createMap($dir) as $class => $path) { foreach (ClassMapGenerator::createMap($dir) as $class => $path) {
$path = $filesystem->findShortestPath(getcwd(), $path, true); $path = $filesystem->findShortestPath(getcwd(), $path, true);
if ($path[0] == '/') { if ($filesystem->isAbsolutePath($path)) {
$classMap[$class] = var_export($path, true).",\n"; $classMap[$class] = var_export($path, true).",\n";
} else { } else {
$classMap[$class] = '$baseDir . '.var_export('/'.$path, true).",\n"; $classMap[$class] = '$baseDir . '.var_export('/'.$path, true).",\n";