ZF-3566: Do not apply array_walk_recursive to filter value if isArray set to false
Description
Currently filter will apply to all array values throw array_walk_recursive:
public function getValue()
{
$valueFiltered = $this->_value;
if (is_array($valueFiltered)) {
array_walk_recursive($valueFiltered, array($this, '_filterValue'));
} else {
$this->_filterValue($valueFiltered, $valueFiltered);
}
return $valueFiltered;
}
Can you add $this->isArray() to condition to filter array values only when $this->isArray() set to true...
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-08-04T06:13:55.000+0000
Scheduling for 1.6 release
Posted by Matthew Weier O'Phinney (matthew) on 2008-08-05T07:54:26.000+0000
Functionality added in r10675 to trunk and r10676 in 1.6 release branch.
Posted by Wil Sinclair (wil) on 2008-09-02T10:39:07.000+0000
Updating for the 1.6.0 release.