[Tickets #400] NEW: PHP5 with IMP/PEAR

bugs at bugs.horde.org bugs at bugs.horde.org
Wed Jul 21 02:37:25 PDT 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

-Ticket 400
-Queue: IMP
-Created By: 


>From s0l at solvo.ru (Wed Jul 21 02:37:24 2004):
1.

PHP no longer allow acces to $this in class without instance, like:

class A {
 var $a;
 function f() {
   if (isset($this->a)) /// ERROR
...
}

^^^ related to HOARD, Mail lirary:
pear/mail/RFC822.php:
    function parseAddressList($address = null, $default_domain = null,
$nest_groups = null, $validate = null, $limit = null)
    {
        
        if (!isset($this->mailRFC822)) {

and this code is called as:
  Mail_RFC822::parseAddressList(...)

2.

PHP hungs when array assignment with other type by self:

$tmp = superarray[smallarray1, smallarray2];
$tmp = $tmp[0]; // PHP HUNG, send php script as binary file insteads
text/html

^^^ related to:
mailbox.php:688
    if (isset($h->from)) {
        $tmp = imap_rfc822_parse_adrlist($h->from, '');
        $tmp = $tmp[0];
        $fullfrom = '';

fast solution:
    if (isset($h->from)) {
        $tmp_ = imap_rfc822_parse_adrlist($h->from, '');
        $tmp = $tmp_[0];
        $fullfrom = '';





http://bugs.horde.org/details.php?id=400

-- 


More information about the bugs mailing list