Zend Framework

Zend_Reflection_Doctype_Tag_Param regex does not account for PHP 5.3 style namespaces

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.9.6
  • Component/s: Zend_Reflection
  • Labels:
    None

Description

If I have a param like this

@param My\Namespace\Object $something
the regex used:

(#^@(\w+)\s+(\w+)(?:\s+(\$\S+))?(?:\s+(.*))?#s)

ignores everything after the backslash I would suggest changing it to:

#^@(\w+)\s+([\w|\\\]+)(?:\s+(\$\S+))?(?:\s+(.*))?#s

Activity

Hide
Benjamin Eberlei added a comment -

Fixed formatting.

Show
Benjamin Eberlei added a comment - Fixed formatting.
Hide
Benjamin Eberlei added a comment -

The patch fixues the issue, however i have no write access to svn on this machine so i dump it here for pickup tommorrow.

Show
Benjamin Eberlei added a comment - The patch fixues the issue, however i have no write access to svn on this machine so i dump it here for pickup tommorrow.
Hide
Benjamin Eberlei added a comment -

fixed in trunk and merged into the 1.9 release branch.

Show
Benjamin Eberlei added a comment - fixed in trunk and merged into the 1.9 release branch.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: