Issues

ZF-3566: Do not apply array_walk_recursive to filter value if isArray set to false

Issue Type: Improvement Created: 2008-07-03T05:12:43.000+0000 Last Updated: 2008-09-02T10:39:07.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Vladimir Michailenko (mich) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments:

Description

Currently filter will apply to all array values throw array_walk_recursive:

<pre class="highlight">
    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.

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