ZF-2073: Zend_Filter_Digits doesn't work in multibyte languages.
Description
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.
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.
Comments
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 (yoshida@zend.co.jp) 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 (yoshida@zend.co.jp) on 2007-11-26T20:29:16.000+0000
I find a plan.
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) 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 (yoshida@zend.co.jp) 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 [~yoshida@zend.co.jp]. 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 (yoshida@zend.co.jp) on 2008-03-09T10:34:23.000+0000
Resolved in SVN r8710