PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_PHPLIB » Bug #6945

undefined variable notice in function finish($str)

Details

Submitted2006-02-27 06:16 UTC
Fromdonyad at gmail dot com
Assignedcweiske
StatusClosed
PackageHTML_Template_PHPLIB
PHP Version4.4.2
OSWindowsXP
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