Issues

ZF-8994: Bug in some filters

Issue Type: Bug Created: 2010-01-28T05:32:21.000+0000 Last Updated: 2010-02-02T11:10:13.000+0000 Status: Resolved Fix version(s): - 1.10.1 (10/Feb/10)

Reporter: seba kerckhof (sebak) Assignee: Thomas Weidner (thomas) Tags: - Zend_Filter

Related issues: - ZF-9062

Attachments:

Description

Hello,

I believe there's an error in the stringToLower filter @ line 61:

if (array_key_exists('encoding', $options)) { $this->setEncoding($options); }

And definition for setEncoding is: /** * Set the input encoding for the given string * * @param string $encoding

So $encoding must be a string, and it gives an error ("The given encoding 'Array' is not supported by mbstring") if you give an Array, which you obvious do.

So line 61 should probably be: $this->setEncoding($options['encoding']);

This also applies to StringToUpper, and maybe others.

Comments

Posted by Thomas Weidner (thomas) on 2010-01-28T05:43:44.000+0000

Fixed with r20718

Posted by seba kerckhof (sebak) on 2010-01-28T05:47:42.000+0000

Btw, thomas, is it normal that there are no translation files for validation messages in 1.10? The resources folder is empty, but I've read on your blog that there would be a few available, so I don't know if that's a bug or not.

Posted by Thomas Weidner (thomas) on 2010-01-28T06:35:45.000+0000

Zend forgot to integrate this directories when they created the branch. They are available in trunk but not in branch.

See and vote for ZF-8996

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