ZF2-109: DocBlock\TagManager renames valid tag names

Issue Type: Bug Created: 2011-12-05T17:36:41.000+0000 Last Updated: 2012-07-12T14:08:50.000+0000 Status: Resolved Fix version(s): Reporter: Massimiliano Torromeo (mtorromeo) Assignee: Ralph Schindler (ralph) Tags: - Zend\Code\Reflection

  • reflection

Related issues: Attachments:


Component: Zend\Code (not listed)

The TagManager performs the following renaming on tagNames in multiple places:

$tagName = strtolower(str_replace(array('-', '_'), '', $tagName));

I don't see any valid reason to do this as I cannot use anymore tag names with underscores which were allowed in zf 2.0 dev2


Posted by Maks 3w (maks3w) on 2012-06-14T20:35:29.000+0000

That instruction only normalize the tag name internally. I don't see any problem in use tags with scores in their names.

Anyway if you still thinking that this is a issue feel free to reopen it.

Posted by Massimiliano Torromeo (mtorromeo) on 2012-07-12T14:08:50.000+0000

The tag works but the underscore is stripped and if in my code I need to check for that tag, I have to search without underscores. Anyway I don't see the point in filing bugs here anymore if I have to see it ignored again 6 months from now.


Have you found an issue?

See the Overview section for more details.


© 2006-2021 by Zend by Perforce. Made with by awesome contributors.

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