Home » Networking » Net_IMAP » Bug #6813
When string returned from cmdLogout() error is produced
Details
| Submitted | 2006-02-17 14:58 UTC |
|---|---|
| From | tsvetan dot filev at gmail dot com |
| Assigned | amistry |
| Status | No Feedback |
| Package | Net_IMAP |
| PHP Version | 5.1.1 |
| OS | gentoo |
| Roadmaps | (Not assigned) |
Comments
[2006-02-17 14:58 UTC] tsvetan dot filev at gmail dot com
Description:
------------
Please patch this function to the following:
function disconnect($expungeOnExit = false)
{
if($expungeOnExit){
$ret=$this->cmdExpunge();
if(strtoupper($ret["RESPONSE"]["CODE"]) != "OK"){
$ret=$this->cmdLogout();
return new PEAR_Error($ret["RESPONSE"]["CODE"] . ", " . $ret["RESPONSE"]["STR_CODE"]);
}
}
$ret=$this->cmdLogout();
if( is_array($ret) and strtoupper($ret["RESPONSE"]["CODE"]) != "OK"){
return new PEAR_Error($ret["RESPONSE"]["CODE"] . ", " . $ret["RESPONSE"]["STR_CODE"]);
}
return true;
}
[2006-03-22 04:40 UTC] amistry at php dot net
I think I've fixed this in the CVS, and you please verify. Thanks.