Re: [Phplib-users] PEAR phplibtemplate vs phplib teplate.inc
Brought to you by:
nhruby,
richardarcher
|
From: S. <bj...@th...> - 2003-03-21 12:29:51
|
Hi,
* Richard Archer wrote:
> I suggest you run some thorough tests on your class to see
> how it fares in the case of strange input. I notice that
> these three tests fail in my test script:
> $t->set_var("tendollars", "$10.00");
> $t->set_var("slasha", "\\a");
> $t->set_var("brblahbr", "{blah}");
$t =3D new Template_PHPLIB;
$t->setVar(array(
"bla" =3D> "$10.00",
"slasha" =3D> "\\a",
"br" =3D> "{blah}"
));
print $t->getVar("bla")."<br>";
print $t->getVar("slasha")."<br>";
print $t->getVar("br");
outputs:
$10.00
\a
{blah}
tested with current CVS version.
> I also think you are taking a mighty large liberty by removing
I didn't do the initial checkin, but Kristian might mail me in
order to ACK or NACK it.
> the NetUSE copyright notice from the file and re-licensing it
> under a PHP license, but I guess it is up to Kristian to complain
> about that, not me.
> str_replace only supports arrays as arguments in PHP 4.05 and above.
Yep. PHP3 is outdated.
> I suspect that once you have resolved the $ and \ stripping problems,
There's nothing to resolve, see above.
--=20
ThinkPHP / rent-a-phpwizard bj...@th...
Sedanstra=DFe 27 Tel: 0931 / 78 43 804
97082 W=FCrzburg Fax: 0931 / 78 43 795
http://www.thinkphp.de/ http://www.rent-a-phpwizard.de/
|