[phplib] Some problem in template class with php4.0.6 From: dennis (dennis <email protected>)
Date: 09/06/01

Hi,
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>
============
{IC}<br>
============

<test.php>
============
<?
include("template.inc");
$tmp = "$100";
echo $tmp."<br>"; <== There will be output "$100"

$t = new Template;
$t->set_file("page", "shell.html");
$t->set_var("IC", $tmp);
$t->parse("out", "page");
$t->p("out"); <== There will be output "0", run in php4.0.6
?> There will be output "$100", run in php4.0.2
===============