cvs: pear /Mail_Mime mimeDecode.php
| From: | Richard Heyes | Date: | Mon, 08 Apr 2002 17:29:27 +0000 |
| Subject: | cvs: pear /Mail_Mime mimeDecode.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3147@lists.php.net to get a copy of this message | ||
richard Mon Apr 8 13:29:27 2002 EDT
Modified files:
/pear/Mail_Mime mimeDecode.php
Log:
* Works now when being called statically from another class.
Index: pear/Mail_Mime/mimeDecode.php
diff -u pear/Mail_Mime/mimeDecode.php:1.26 pear/Mail_Mime/mimeDecode.php:1.27
--- pear/Mail_Mime/mimeDecode.php:1.26 Wed Apr 3 15:36:35 2002
+++ pear/Mail_Mime/mimeDecode.php Mon Apr 8 13:29:24 2002
@@ -48,7 +48,7 @@
* perhaps even message/partial.
*
* @author Richard Heyes <richard@phpguru.org>
-* @version $Revision: 1.26 $
+* @version $Revision: 1.27 $
* @package Mail
*/
@@ -103,6 +103,14 @@
* @var string
*/
var $_crlf;
+
+ /**
+ * If invoked from a class, $this will be set. This has problematic
+ * connotations for calling decode() statically. Hence this variable
+ * is used to determine if we are indeed being called statically or
+ * via an object.
+ */
+ var $mailMimeDecode;
/**
* Constructor.
@@ -118,13 +126,15 @@
{
$this->_crlf = $crlf;
- list($header, $body) = $this->_splitBodyHeader($input);
+ list($header, $body) = $this->_splitBodyHeader($input);
$this->_input = $input;
$this->_header = $header;
$this->_body = $body;
$this->_decode_bodies = false;
$this->_include_bodies = true;
+
+ $this->mailmimeDecode = true;
}
/**