PEAR is archived and read-only

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

Home » HTML » HTML_Template_Sigma » Bug #1489

text enclosed in {} vanishes

Details

Submitted2004-05-24 21:44 UTC
Fromlord_damokles at gmx dot net
StatusBogus
PackageHTML_Template_Sigma
PHP Version4.3.6
OSwin98se
Roadmaps(Not assigned)

Comments

[2004-05-24 21:44 UTC] lord_damokles at gmx dot net

Description:
------------
If I set a Variable then all {[a-zA-Z0-9_]}-blocks are removed when they are parsed. (see code)

Of course I know that recursion would be a problem, but it would be a great help if they could be preserved or even better get parsed.

Reproduce code:
---------------
First possibility:
$tpl->setVariable ("test","This {is} a test.");
$tpl->parse();

Second possibility:
$tpl->setVariable ("is","was");
$tpl->setVariable ("test","This {is} a test.");
$tpl->parse();

Expected result:
----------------
1.
This {is} a test.

2.
This was a test.

Actual result:
--------------
This a test.