[Phplib-trackers] [ phplib-Bugs-577922 ] Error: now disappears $xx and \
Brought to you by:
nhruby,
richardarcher
From: <no...@so...> - 2002-07-05 20:48:55
|
Bugs item #577922, was opened at 2002-07-05 15:35 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=577922&group_id=31885 Category: Template Group: 7.4pre1 Status: Open Resolution: None Priority: 5 Submitted By: Alejandro W. (awoywood) Assigned to: Nobody/Anonymous (nobody) Summary: Error: now disappears $xx and \ Initial Comment: Hi, I was looking for a correction to the disappearing $, then I tried this version of templates.inc But I found two errors: - templates.inc->set_var still eats "$xx", where x is a literal - templates.inc->set_var eats the \ in "\" if you do the following: $t->set_var(array( "t1" => " $es ", "t2" => " \23 " )); the variables inside the template object will became: t1="" and t2="$123". t1 is clearly wrong. t2 seems wrong too (I don't know the inner representation). After doing a $t->parse and a $t->p, in place of {t2} you will get a "$123" which is wrong. ---------------------------------------------------------------------- >Comment By: Layne Weathers (layne_weathers) Date: 2002-07-05 15:48 Message: Logged In: YES user_id=278685 t1 depends completely on your setting of the PHP variable $es - you should be testing against ' $es ' so that PHP is not doing variable substitution within the string. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=577922&group_id=31885 |