Home » HTML » HTML_Template_PHPLIB » Bug #6945
undefined variable notice in function finish($str)
Details
| Submitted | 2006-02-27 06:16 UTC |
|---|---|
| From | donyad at gmail dot com |
| Assigned | cweiske |
| Status | Closed |
| Package | HTML_Template_PHPLIB |
| PHP Version | 4.4.2 |
| OS | WindowsXP |
| Roadmaps | (Not assigned) |
Comments
[2006-02-27 06:16 UTC] donyad at gmail dot com
Description:
------------
Here is the source code
function finish($str)
{
switch ($this->unknowns) {
case "remove":
$str = preg_replace('/{[^ \t\r\n}]+}/', "", $str);
break;
case "comment":
$str = preg_replace('/{([^ \t\r\n}]+)}/', "<!-- Template $handle: Variable \\1 undefined -->", $str);
break;
}
return $str;
}
see that ?
in case "comment" here is a variable $handle undefined
Expected result:
----------------
Notice: Undefined variable: handle in D:\www\example\inc\PHPLIB.php on line 417