r40010 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40009‎ | r40010 | r40011 >
Date:06:48, 26 August 2008
Author:tstarling
Status:old
Tags:
Comment:
Added __destruct(), for stable pseudo-branch
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -143,6 +143,15 @@
144144 }
145145
146146 /**
 147+ * Reduce memory usage to reduce the impact of circular references
 148+ */
 149+ function __destruct() {
 150+ foreach ( $this as $name => $value ) {
 151+ unset( $this->$name );
 152+ }
 153+ }
 154+
 155+ /**
147156 * Do various kinds of initialisation on the first call of the parser
148157 */
149158 function firstCallInit() {

Follow-up revisions

RevisionCommit summaryAuthorDate
r40020* Revert back to my parser pseudo-branch again. Note: if you feel like revert...tstarling14:37, 26 August 2008

Status & tagging log