commit 61631f9297fc4d6cd8f9185f5e8b6e683c367cf5
Author: Francois Marier <francois@catalyst.net.nz>
Date:   Fri May 22 13:41:33 2009 +1200

    lib/html2text: fix error in preg_replace_callback on php4

diff --git a/lib/html2text.php b/lib/html2text.php
index ec42c57..f231eaf 100644
--- a/lib/html2text.php
+++ b/lib/html2text.php
@@ -468,7 +468,7 @@ class html2text
 
         // Run our defined search-and-replace
         $text = preg_replace($this->search, $this->replace, $text);
-        $text = preg_replace_callback($this->callback_search, array('html2text', '_preg_callback'), $text);
+        $text = preg_replace_callback($this->callback_search, array(&$this, '_preg_callback'), $text);
 
         // Replace known html entities
         $text = utf8_decode(html_entity_decode($text));
