#103: The parser does not handle all strings as parameter default value correct
Issue revisions
- new by Manuel Pichler(work) at 2009-D-04 12:51
- assigned by Manuel Pichler at 2009-D-14 13:21
- assigned by Manuel Pichler at 2009-D-14 13:21
- assigned by Manuel Pichler at 2009-D-14 13:24
- closed by Manuel Pichler at 2009-D-14 14:33
| Type | |
|---|---|
| State | |
| Priority | |
| Resolution | |
| Assigned to | Manuel Pichler |
| Scheduled for | 0.9.8 |
| Affected versions | 0.9.x-svn, 0.9.7 |
| Affected components | Parser |
| Last change | Monday 14 December 2009 14:33:41 UTC by Manuel Pichler |
Short description
-----------------
The current parser implementation does not handle string parameter default values as expected. For example the following source fragment: ::
<?php
/**
* @package bug
*/
class Bug {
function foo($bar = "x (\$x) y") {
}
}
Steps to reproduce
------------------
::
mapi@arwen ~$ pdepend --summary-xml=/tmp/sum.xml /tmp/test.php
...
...
Following errors occured:
Unexpected token: ", line: 6, col: 25, file: /tmp/test.php.
Manuel Pichler at Monday 14 December 2009 13:21:33 UTC
Scheduled for version 0.9.8
Manuel Pichler at Monday 14 December 2009 13:24:56 UTC
Description text changed.
Manuel Pichler at Monday 14 December 2009 14:33:41 UTC
Fixed in svn revision #1009.