Issues

ZF2-58: Classmap generator broken on Win32

Issue Type: Bug Created: 2011-09-02T12:10:50.000+0000 Last Updated: 2011-09-02T17:01:37.000+0000 Status: Resolved Fix version(s): Reporter: Artur Bodera (joust) Assignee: Artur Bodera (joust) Tags: - Zend\Loader

Related issues: Attachments: - 0001-ZF2-58-Classmap-generator-broken-on-Win32.patch

Description

Sample use case:

<pre class="highlight">
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:

<pre class="highlight">
'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

Posted by Artur Bodera (joust) on 2011-09-02T12:13:57.000+0000

PR: https://github.com/zendframework/zf2/pull/378

Posted by Artur Bodera (joust) on 2011-09-02T12:16:40.000+0000

https://github.com/zendframework/zf2/pull/378

Posted by Matthew Weier O'Phinney (matthew) on 2011-09-02T14:20:13.000+0000

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts