Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.1

Bug #6945 undefined variable notice in function finish($str)
Submitted: 2006-02-27 06:16 UTC
From: donyad at gmail dot com Assigned: cweiske
Status: Closed Package: HTML_Template_PHPLIB (version 1.3.1)
PHP Version: 4.4.2 OS: WindowsXP
Roadmaps: (Not assigned)    
Subscription  


 [2006-02-27 06:16 UTC] donyad at gmail dot com (aDang)
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

Comments

 [2006-10-30 23:44 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!