Issues

ZF2-58: Classmap generator broken on Win32

Description

Sample use case:


C:\Users\Joustin\Documents\Projects\project>php bin\classmap_generator.php -l library\Zend
Creating class file map for library in 'C:\Users\Joustin\Documents\Projects\project\library\Zend'...
Wrote classmap file to 'C:\Users\Joustin\Documents\Projects\project\library\Zend\.classmap.php'

This results in a {{.classmap.php}} file with broken paths to files in the top-level library directory. For example:


'Zend\\Debug' => __DIR__ . DIRECTORY_SEPARATOR . '.' . DIRECTORY_SEPARATOR . 'C:' . DIRECTORY_SEPARATOR . 'Users' . DIRECTORY_SEPARATOR . 'Joustin' . DIRECTORY_SEPARATOR . 'Documents' . DIRECTORY_SEPARATOR . 'Projects' . DIRECTORY_SEPARATOR . 'project' . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'Zend' . DIRECTORY_SEPARATOR . 'Debug.php',

This happens only on Windows (win32).

Comments

Please don't mark it as resolved until we actually have merged the pull request. :)