Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
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
| This issue is dependecy of: | ||||
| ZF-9062 | Zend_Filter_StringToUpper / Zend_Filter_StringToLower: setEnconding at Constructor |
|
|
|
Fixed with r20718