PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_IT » Bug #1901

Paranthess { } lost...

Details

Submitted2004-07-17 07:34 UTC
Fromsinan at gamebox dot net
Assignedpajoye
StatusBogus
PackageHTML_Template_IT
PHP Version4.3.4
OSMandrake 10.0
Roadmaps(Not assigned)

Comments

[2004-07-17 07:34 UTC] sinan at gamebox dot net

Description:
------------
Input paranthesis { lost } ...

Reproduce code:
---------------
$input = '?_{3}_? {2} any thing else... 1/{2}';

$template->setVariable('MAIN', $input);
$template->show();

Expected result:
----------------
?_{3}_? {2} any thing else... 1/{2}

Actual result:
--------------
?__? any thing else... 1/

[2004-07-17 15:28 UTC] pierre at dotgeek dot org

Thank you for taking the time to write to us, but this is not
a bug.

See the manual.
Sample code:

$tpl = new HTML_Template_IT();
$input = '?_{MAIN}{3}_? {2} any thing else... 1/{2}';
$tpl->setTemplate($input, false, true);
$tpl->setVariable('MAIN', $input);
$tpl->parse();
$tpl->show();

--Pierre

[2004-07-19 05:53 UTC] sinan at gamebox dot net

But it is not variable, it just a input string....

So, there is a no problem...

$input = '?_{3}_? {2} any thing else... 1/{2}';

$input = strtr($input, array('{'=>'{',
'}'=>'}'));

$tpl->setTemplate($input, true, true);
$tpl->setVariable('MAIN', $input);
$tpl->parse();
$tpl->show();