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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 22 + 45 = ?

 
 [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] cweiske (Christian Weiske)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.