cvs: pear /Mail package.xml /Mail/Mail RFC822.php
| From: | Chuck Hagenbuch | Date: | Tue, 08 Jun 2004 14:48:31 +0000 |
| Subject: | cvs: pear /Mail package.xml /Mail/Mail RFC822.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-20355@lists.php.net to get a copy of this message | ||
chagenbu Tue Jun 8 10:48:31 2004 EDT
Modified files:
/pear/Mail package.xml
/pear/Mail/Mail RFC822.php
Log:
php5 compatibility fix - bug #1563
http://cvs.php.net/diff.php/pear/Mail/package.xml?r1=1.18&r2=1.19&ty=u
Index: pear/Mail/package.xml
diff -u pear/Mail/package.xml:1.18 pear/Mail/package.xml:1.19
--- pear/Mail/package.xml:1.18 Sun May 23 19:35:13 2004
+++ pear/Mail/package.xml Tue Jun 8 10:48:31 2004
@@ -37,6 +37,7 @@
<notes>
- Header key comparisons are now case-insensitive. (Colin Viebrock)
- Header fields (e.g., 'Cc', 'Bcc') may now be specified as arrays of
addresses. (Colin Viebrock)
+- PHP5 compatibility fix (Bug #1563).
</notes>
<state>stable</state>
<filelist>
http://cvs.php.net/diff.php/pear/Mail/Mail/RFC822.php?r1=1.12&r2=1.13&ty=u
Index: pear/Mail/Mail/RFC822.php
diff -u pear/Mail/Mail/RFC822.php:1.12 pear/Mail/Mail/RFC822.php:1.13
--- pear/Mail/Mail/RFC822.php:1.12 Wed Feb 25 15:37:31 2004
+++ pear/Mail/Mail/RFC822.php Tue Jun 8 10:48:31 2004
@@ -52,7 +52,7 @@
*
* @author Richard Heyes <richard@phpguru.org>
* @author Chuck Hagenbuch <chuck@horde.org>
-* @version $Revision: 1.12 $
+* @version $Revision: 1.13 $
* @license BSD
* @package Mail
*/
@@ -164,8 +164,7 @@
*/
function parseAddressList($address = null, $default_domain = null, $nest_groups = null,
$validate = null, $limit = null)
{
-
- if (!isset($this->mailRFC822)) {
+ if (!isset($this) && !isset($this->mailRFC822)) {
$obj = new Mail_RFC822($address, $default_domain, $nest_groups, $validate, $limit);
return $obj->parseAddressList();
}