From 409b547cae7ec01fb031b6f2a857bf42b481c734 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 27 Apr 2011 20:05:39 +0000 Subject: [PATCH] * (bug 28719) Do not call mLinkHolders __destruct explicitly Patch by Vitaliy Filippov --- CREDITS | 1 + RELEASE-NOTES | 1 + includes/parser/Parser.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CREDITS b/CREDITS index 5c240391f2..834f3b6324 100644 --- a/CREDITS +++ b/CREDITS @@ -144,6 +144,7 @@ following names for their contribution to the product. * Tisane * Umherirrender * Ville Stadista +* Vitaliy Filippov * Yuvaraj Pandian T * Zachary Hauri diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 31bb386002..8576833d6e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -253,6 +253,7 @@ PHP if you have not done so prior to upgrading MediaWiki. parsed messages. * (bug 27249) "Installed software" table in Special:Version should always be left-to-right. +* (bug 28719) Do not call mLinkHolders __destruct explicitly === API changes in 1.18 === * (bug 26339) Throw warning when truncating an overlarge API result. diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index acbfc0e516..ee3eb589a4 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -182,7 +182,7 @@ class Parser { */ function __destruct() { if ( isset( $this->mLinkHolders ) ) { - $this->mLinkHolders->__destruct(); + unset( $this->mLinkHolders ); } foreach ( $this as $name => $value ) { unset( $this->$name ); -- 2.20.1