PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_IMAP » Bug #2028

in function cmdCapability() missplaced curly brace

Details

Submitted2004-07-30 18:26 UTC
Fromnic at postilion dot org
Assigneddamian
StatusClosed
PackageNet_IMAP
PHP Version4.3.3
OSany
Roadmaps(Not assigned)

Comments

[2004-07-30 18:26 UTC] nic at postilion dot org

Description:
------------
In the function cmdCapability(), you close the
if(isset( $ret["PARSED"] ) ) stanza and then do
$this->_serverSupportedCapabilities = $ret["PARSED"]["CAPABILITIES"];

which should be done prior to the closing curly brace.

Reproduce code:
---------------
diff -u Net_IMAP-1.0.1/IMAPProtocol.php Net_IMAP-1.0.1a/IMAPProtocol.php
--- Net_IMAP-1.0.1/IMAPProtocol.php 2004-06-26 10:42:31.000000000 -0500
+++ Net_IMAP-1.0.1a/IMAPProtocol.php 2004-07-30 08:23:27.000000000 -0500
@@ -959,9 +959,9 @@
if( strtoupper( substr( $auth_method , 0 ,5 ) ) == "AUTH=" )
$this->_serverAuthMethods[] = substr( $auth_method , 5 );
}
+ // Keep the capabilities response to use ir later
+ $this->_serverSupportedCapabilities = $ret["PARSED"]["CAPABILITIES"];
}
- // Keep the capabilities response to use ir later
- $this->_serverSupportedCapabilities = $ret["PARSED"]["CAPABILITIES"];
return $ret;
}