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 <[EMAIL PROTECTED]> |
// +----------------------------------------------------------------------+
//
-// $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 <[EMAIL PROTECTED]>
-* @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
+?>
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]