[Phplib-users] Some problem in template class with php4.0.6
Brought to you by:
nhruby,
richardarcher
From: dennis <de...@i-...> - 2001-09-06 07:45:36
|
Hi,=20 I'm using phplib7.2c, and upgrade php from 4.0.2pl to 4.0.6. A problem = was found, please see the example. The example is ok which run in = php4.0.2, but run in php4.0.6 would output error. <shell.html> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D {IC}<br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <test.php> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <? include("template.inc"); $tmp =3D "$100"; echo $tmp."<br>"; <=3D=3D There will be output "$100" $t =3D new Template; $t->set_file("page", "shell.html"); $t->set_var("IC", $tmp); $t->parse("out", "page"); $t->p("out"); <=3D=3D There will be output "0", run = in php4.0.6 ?> There will be output "$100", = run in php4.0.2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |