Details
Description
[Test Script]
<?php
set_include_path('../zf-trunk/library');
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
$view = new Zend_View;
$view->headMeta()->setName('keywords', 'php application');
$view->headMeta()->appendHttpEquiv('pragma', 'no-cache');
$view->headMeta()->appendHttpEquiv('Cache-control', 'no-cache');
$view->headMeta()->setName('keywords', 'xavi');
?>
<pre>
<?php
echo htmlentities($view->headMeta()->setPostfix("\n"));
[Expected Output]
<meta name="keywords" content="xavi" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-control" content="no-cache" />
[Actual Output]
<meta name="keywords" content="xavi" />
(Run against: r7761 & r8026)
CG wrote:
I was expecting the second call to setName() to only override the 'keywords'
index/property. Is this simply a misunderstanding on Xavier's and my side or
this this indeed a bug?
MO'P wrote:
Bug. Please file an issue in JIRA with the above reproduce/expect/actual
information so either Ralph or I can look into it.
Fixed in r8253.
Please check, if not completely fixed, then reopen.
-ralph