cvs: php4 /pear/HTML IT.php
| From: | Chuck Hagenbuch | Date: | Thu, 08 Feb 2001 22:19:59 +0000 |
| Subject: | cvs: php4 /pear/HTML IT.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3955@lists.php.net to get a copy of this message | ||
chagenbu Thu Feb 8 14:19:59 2001 EDT
Modified files:
/php4/pear/HTML IT.php
Log:
The free() method was throwing away too much information for template
caching (re-using the same template) to work. So either these arrays need to
be kept around (which is what this patch does), or everything using IT needs
to not call free() if it wants template caching to work (seemed like more of
a pain).
Index: php4/pear/HTML/IT.php
diff -u php4/pear/HTML/IT.php:1.3 php4/pear/HTML/IT.php:1.4
--- php4/pear/HTML/IT.php:1.3 Fri Jan 19 05:37:03 2001
+++ php4/pear/HTML/IT.php Thu Feb 8 14:19:59 2001
@@ -16,7 +16,7 @@
// | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> |
// +----------------------------------------------------------------------+
//
-// $Id: IT.php,v 1.3 2001/01/19 13:37:03 sbergmann Exp $
+// $Id: IT.php,v 1.4 2001/02/08 22:19:59 chagenbu Exp $
//
/**
* Integrated Template - IT
@@ -109,7 +109,7 @@
* </code>
*
* @author Ulf Wendel <uw@netuse.de>
-* @version $Id: IT.php,v 1.3 2001/01/19 13:37:03 sbergmann Exp $
+* @version $Id: IT.php,v 1.4 2001/02/08 22:19:59 chagenbu Exp $
* @access public
*/
class IntegratedTemplate {
@@ -588,15 +588,11 @@
*/
function free() {
- $this->err[] = "";
+ $this->err = array();
$this->currentBlock = "__global__";
$this->variableCache = array();
- $this->blocklist = array();
- $this->blockvariables = array();
- $this->blockinner = array();
- $this->blockdata = array();
$this->blocklookup = array();
$this->touchedBlocks = array();
@@ -829,4 +825,4 @@
} // end func halt
} // end class IntegratedTemplate
-?>
\ No newline at end of file
+?>