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

Bug #7611 Typo in IT.php
Submitted: 2006-05-12 09:40 UTC
From: jeff at macloue dot org dot ua Assigned: pajoye
Status: Closed Package: HTML_Template_IT (version 1.1.4)
PHP Version: 4.4.1 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2006-05-12 09:40 UTC] jeff at macloue dot org dot ua (Jeff MacLoue)
Description: ------------ In IT.php, in free() method I noticed a typo that prevents parsing several templates. Instead of $this->blocklookup = array(); construction it should be $this->blocklist = array();, I suppose. $blocklookup field is not defined/used elsewhere so I consider this is a typo. Consequences are that you cannot parse several templates with one class - it throughs a warning on duplicate "__global__" block in the template. Test script: --------------- PEAR::setErrorHandling(PEAR_ERROR_PRINT); $tpl->loadTemplatefile("one.html"); $tpl->setVariable($tplvars); $tpl->parse(); $tpl->show(); $tpl->loadTemplatefile("another.html"); $tpl->setVariable($tplvars); $tpl->parse(); $tpl->show();

Comments

 [2006-06-13 17:54 UTC] pajoye (Pierre-Alain Joye)
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.