ZF-2073: Zend_Filter_Digits doesn't work in multibyte languages.

Issue Type: Improvement Created: 2007-10-16T03:30:50.000+0000 Last Updated: 2011-08-03T14:26:40.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: old of Satoru Yoshida ( Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Filter

Related issues: - ZF-2107

Attachments: - zf_2073_20071127.txt


Zend/Filter/Digits.php is not available in the multibyte languages. The line 74 is written follow now.

$pattern = '/[\p{^N}]/';

I propose to change as attachment.


Posted by Darby Felton (darby) on 2007-11-07T12:11:45.000+0000

Perhaps you or someone else could contribute tests for Zend_Filter_DigitsTest (tests/Zend/Filter/DigitsTest.php) that would cover the proposed functionality? Though I attempted such a test with SVN r6765, I'm having some difficulty adding multibyte characters to the unit tests with my system.

Posted by Darby Felton (darby) on 2007-11-07T12:12:29.000+0000

Lowering priority to minor since an easy workaround (extend the class) is present.

Posted by old of Satoru Yoshida ( on 2007-11-26T03:49:02.000+0000

Sorry, My Description is harmful for in Zend_Validate_Ccnum. The component depends on Zend_Filter_Digits.

I want to cansel this Issue and SVN r6765.

Posted by old of Satoru Yoshida ( on 2007-11-26T20:29:16.000+0000

I find a plan.

Posted by old of Satoru Yoshida ( on 2007-11-27T00:07:08.000+0000

I make test pattern for Zend_Filter_DigitsTest.php . I hope this will be useful.

Posted by Wil Sinclair (wil) on 2007-12-14T17:02:41.000+0000

What is the status of this issue? Do we have a fix? Is it checked in? Satoru, if you have a fix, I can assign this to you and you can close it.

Posted by old of Satoru Yoshida ( on 2007-12-17T00:26:04.000+0000

I offered a solution in the file attachments, but it does not be discussed or applied as same as ZF-2107 and ZF-2108. Yes I have an idea to fix. But how to edit Zend/Filter/Digits.php and Zend/Filter/DigitsTest.php?

Posted by Darby Felton (darby) on 2008-01-29T09:51:01.000+0000

Assigning to []. Please contact me directly when you are ready to commit your changes, and I'll take care of giving you SVN credentials (e.g., username and password) needed to commit successfully. Thank you! :)

Posted by old of Satoru Yoshida ( on 2008-03-09T10:34:23.000+0000

Resolved in SVN r8710

Have you found an issue?

See the Overview section for more details.


© 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.