#5: Filename is not normalized
Issue revisions
- new by mapi at 2010-J-01 20:37
- assigned by mapi at 2010-J-01 22:35
- assigned by mapi at 2010-J-01 22:35
- closed by mapi at 2010-J-01 22:43
| Type | |
|---|---|
| State | |
| Priority | |
| Resolution | |
| Assigned to | mapi |
| Scheduled for | 0.1.4 |
| Affected versions | 0.1.3 |
| Affected components | |
| Last change | Friday 1 January 2010 22:43:14 UTC by mapi |
Short description
The filename of a class or interface is not normalized to its realpath. This relsults in relative filenames when the session or query is called with a relative input path.
Steps to reproduce
<?php // ... $session = new pdepend\reflection\ReflectionSession(); $query = $session->createFileQuery(); $classes = $query->find( './../Foo.php' ); var_dump( $classes[0]->getFilename() );
Expected behavior
string(27) "/home/mapi/projects/Foo.php"
Actual behavior
string(12) "./../Foo.php"
mapi at Friday 1 January 2010 22:35:36 UTC
Scheduled for version 0.1.4
mapi at Friday 1 January 2010 22:43:14 UTC
Fixed in svn revision #259.