ZF-3780: lowercase switch with uppercase chars in incomming values in Zend_View helper class HeadMeta

Issue Type: Bug Created: 2008-07-28T09:43:20.000+0000 Last Updated: 2008-11-13T14:10:07.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Daniel Kyak (tiggerduck) Assignee: Jon Whitcraft (sidhighwind) Tags: - Zend_View

Related issues: Attachments:


In the helper class HeadMeta a switch looks for lowercase options, but becomes some uppercase chars.

<pre class="highlight"> 
--- HeadMeta.php    (revision 9)
+++ HeadMeta.php    (working copy)
@@ -78,7 +78,7 @@
         if ((null !== $content) && (null !== $keyValue)) {
             $item   = $this->createData($keyType, $keyValue, $content, $modifiers);
             $action = strtolower($placement);
-            switch ($placement) {
+            switch ($action) {
                 case 'append':
                 case 'prepend':
                 case 'set':


Posted by Jon Whitcraft (sidhighwind) on 2008-10-19T11:49:56.000+0000

This has been fixed in SVN with r12019

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:07.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.


© 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.