Zend Framework

Bug in some filters

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10.0
  • Fix Version/s: 1.10.1
  • Component/s: Zend_Filter
  • Labels:
    None

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.

Issue Links

Activity

Hide
Thomas Weidner added a comment -

Fixed with r20718

Show
Thomas Weidner added a comment - Fixed with r20718
Hide
seba kerckhof added a comment -

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.

Show
seba kerckhof added a comment - 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.
Hide
Thomas Weidner added a comment -

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

Show
Thomas Weidner added a comment - 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

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: