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

Bug #16891 bug in IMAPProtocol.php
Submitted: 2009-12-08 23:33 UTC
From: neopreno Assigned: doconnor
Status: Closed Package: Net_IMAP (version 1.1.0)
PHP Version: 5.2.5 OS: Ubuntu
Roadmaps: (Not assigned)    
Subscription  


 [2009-12-08 23:33 UTC] neopreno (martin dorusa)
Description: ------------ there is a bug in IMAPProtocol.php file. function _getNextToken in case'{' is bad comparision if($posClosingBraces = $this->_getClosingBracesPos($str, '{', '}') == false) $posClosingBraces always contains 'false' should be if (false === ($posClosingBraces = $this->_getClosingBracesPos($str, '{', '}'))) because content of message gets a wrong content size in first line like 4}

Comments

 [2010-04-02 00:30 UTC] crishoj (Christian Rishøj)
 [2010-04-02 00:31 UTC] crishoj (Christian Rishøj)
Operator precedence of = and == isn't taken into account in the original code (as per http://php.net/manual/en/language.operators.precedence.php). Please consider the attached patch.
 [2010-09-16 18:08 UTC] longneck (Carl C. Longnecker)
FYI- this fixes the problem where the beginning of any text/array responses to functions like getMessages or getParsedHeaders returns a number followed by a closing curly brace (like '85}') at the beginning of the string or as the first element of the array.
 [2012-01-02 07:30 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
Thank you for taking the time to report a problem with the package. This problem may have been already fixed by a previous change that is in the SVN of the package. Please checking out the SVN repository of this package and upgrade svn checkout svn.php.net/repository/pear/packages/Net_IMAP/trunk pear upgrade package2.xml or pear upgrade package.xml If you are able to reproduce the bug with the latest SVN, please change the status back to "Open". Again, thank you for your continued support of PEAR.
 [2012-01-02 07:30 UTC] doconnor (Daniel O'Connor)
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: doconnor