#22432 [NEW]: Problems with variable substitution in HTML_Template_IT

From: Date: Wed, 26 Feb 2003 12:52:38 +0000
Subject: #22432 [NEW]: Problems with variable substitution in HTML_Template_IT
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13914@lists.php.net to get a copy of this message
From: borz_off at cs dot msu dot su Operating system: all PHP version: 4.2.3 PHP Bug Type: PEAR related Bug description: Problems with variable substitution in HTML_Template_IT require_once 'HTML/Template/IT.php'; $tpl = new HTML_Template_IT(); $tpl->setTemplate('Outer: {outer} <!-- BEGIN inner_block -->Inner: {outer}, {inner}<!-- END inner_block -->', false, true); $tpl->setVariable(array( 'outer' => 'foo', 'inner' => 'bar' )); $tpl->show(); This script outputs Outer: foo Inner: {outer}, bar instead of Outer: foo Inner: foo, bar -- Edit bug report at http://bugs.php.net/?id=22432&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22432&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22432&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22432&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22432&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22432&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22432&r=support Expected behavior: http://bugs.php.net/fix.php?id=22432&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22432&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22432&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22432&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22432&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22432&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22432&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22432&r=gnused

« previous php.pear.dev (#13914) next »