Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.3

Bug #2028 in function cmdCapability() missplaced curly brace
Submitted: 2004-07-30 13:26 UTC Modified: 2006-12-26 23:30 UTC
From: nic at postilion dot org Assigned: damian
Status: Closed Package: Net_IMAP
PHP Version: 4.3.3 OS: any
Roadmaps: (Not assigned)    
Subscription  


 [2004-07-30 13: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; }

Comments

 [2004-08-04 22:19 UTC] damian
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Net_IMAP