Issues

ZF-9204: Filter Word_CamelCaseToSeparator pattern

Issue Type: Bug Created: 2010-02-18T03:32:17.000+0000 Last Updated: 2010-02-19T02:12:25.000+0000 Status: Resolved Fix version(s): - 1.10.2 (24/Feb/10)

Reporter: Freek Gruntjes (fraak) Assignee: Thomas Weidner (thomas) Tags: - Zend_Filter

Related issues: - ZF-8216

Attachments:

Description

the filter Zend_Filter_Word_CamelCaseToSeparator has a bug in the pattern:

    $oFilter = new Zend_Filter_Word_CamelCaseToUnderscore();
    $sCalcStr = $oFilter->filter('PaTitle');
    echo "Input: PaTitle Expected: Pa_Title Result: $sCalcStr\r\n";


$sCalcStr = $oFilter->filter('Pa2Title');
echo "Input: Pa2Title Expected: Pa2_Title Result: $sCalcStr\r\n";

$sCalcStr = $oFilter->filter('P2aTitle');
echo "Input: P2aTitle Expected: P2a_Title Result: $sCalcStr\r\n";

Will result in: Input: PaTitle Expected: Pa_Title Result: Pa_Title Input: Pa2Title Expected: Pa2_Title Result: Pa2Title Input: P2aTitle Expected: P2a_Title Result: P2a_Title

I dont know if this bug also occours in a unicode supported environment or that it might even be expected behavior.

Comments

Posted by Thomas Weidner (thomas) on 2010-02-18T22:49:31.000+0000

Fixed with r21089

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