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 #4759

$ [output error]

Details

Submitted2005-07-06 15:55 UTC
Fromrob at focusonline dot com
Assignedpajoye
StatusBogus
PackageHTML_Template_IT
PHP Version4.3.11
OSRed Hat ES3
Roadmaps(Not assigned)

Comments

[2005-07-06 15:55 UTC] rob at focusonline dot com

Description:
------------
When we use the '$' before any template variable several characters are cut out of the display. This is particularly harmful when a price is being displayed.

Reproduce code:
---------------
logic file:
$tpl->setVariable("price", "85.00");

template file:
the price is ${price}

Expected result:
----------------
the price is $85.00

Actual result:
--------------
the price is .00

[2005-07-06 19:26 UTC] pierre at dotgeek dot org

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

Set use_preg and preserve_data to false in the options, that will solve your problem (and the upcoming ones ;).

--Pierre