Issues

ZF-10793: Zend_View_Helper_Placeholder_Registry::createContainer - second param is unusable

Issue Type: Bug Created: 2010-12-08T06:40:38.000+0000 Last Updated: 2010-12-17T17:43:37.000+0000 Status: Resolved Fix version(s): - 1.11.2 (30/Dec/10)

Reporter: ZedroXyMur (zedroxymur) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_View

Related issues: Attachments:

Description

second param "$value" in method "createContainer" does not participate in containerClass constructor.

Real code:

class Zend_View_Helper_Placeholder_Registry { public function createContainer($key, array {color:red} $value {color} = array()) { $key = (string) $key;

    $this->_items[$key] = new $this->_containerClass({color:red}array(){color});

    return $this->_items[$key];
}

}

Solution:

class Zend_View_Helper_Placeholder_Registry { public function createContainer($key, array {color:red} $value {color} = array()) { $key = (string) $key;

    $this->_items[$key] = new $this->_containerClass( {color:red} $value {color} );

    return $this->_items[$key];
}

}

Comments

Posted by Ramon Henrique Ornelas (ramon) on 2010-12-17T17:43:35.000+0000

Fixed in trunk r23544 merged to release branch 1.11 r23545 - thanks.

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