PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_IMAP » Bug #6813

When string returned from cmdLogout() error is produced

Details

Submitted2006-02-17 14:58 UTC
Fromtsvetan dot filev at gmail dot com
Assignedamistry
StatusNo Feedback
PackageNet_IMAP
PHP Version5.1.1
OSgentoo
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.