[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-developers] Email app and PHP3
From: |
Dan Kuykendall (Seek3r) |
Subject: |
[Phpgroupware-developers] Email app and PHP3 |
Date: |
Mon, 07 Jan 2002 01:00:03 -0800 |
I have finally fixed PHP3 compatibility for email. I rock!
This was one beast of a moster to fix, but it basicly came down to the
fact that PHP3 does allow arrays of objects, BUT you cannot use a class
var as an array of objects because PHP3 detects a syntax error. So
instead of
return
$this->a[$this->acctnum]['dcom']->delete($this->get_arg_value('mailsvr_stream'),
$msg_num);
I had to use
$tmp_a = $this->a[$this->acctnum];
$retval = $tmp_a['dcom']->delete($this->get_arg_value('mailsvr_stream'),
$msg_num);
$this->a[$this->acctnum] = $tmp_a;
return $retval;
In this I place the object in a temp location, then commit my action,
and then put the updated object back in the orginal place.
Other than that I had to fix a few other smaller PHP3 compatibility
no-no's, but they were minor, and the major thing is that email once
again works in php3!
I still noticed an error when viewing a message, but I can still read
the message and I am tired, so I will leave this for later.
The error I see is
Warning: Index referencing a non-array in
/var/www/html/phpgroupware/email/inc/class.bomessage.inc.php on line 166
Seek3r
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-developers] Email app and PHP3,
Dan Kuykendall (Seek3r) <=