FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=8744&edit=1

ID: 8744
Updated by: daniel.oconnor@gmail.com
Reported By: rix0r at rix0r dot nl
Summary: manageMB method does not return actual result
-Status: Assigned
+Status: Closed
Type: Bug
Package: Mail_IMAPv2
Operating System: WinXP
Package Version: 0.2.0
PHP Version: 5.1.4
Assigned To: richy
Roadmap Versions:
New Comment:

-Status: Assigned
+Status: Closed
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.




Previous Comments:
------------------------------------------------------------------------

[2006-09-20 10:08:30] rix0r at rix0r dot nl

Description:
------------
A misplacement of the "return $ret;" statement in the manageMB() method
causes the function never to return TRUE or FALSE, but always NULL.

Attached as test script is a unified diff that fixes this (and another
perceived bug in that method), and replaces the "$ret = ...; ....;
return $ret;" idiom with something a little more direct, namely a direct
"return ...;"

Test script:
---------------
--- ManageMB.php Wed Sep 20 15:19:27 2006
+++ Kopie van ManageMB.php Wed Sep 20 15:20:37 2006
@@ -91 +91 @@
- $ret = TRUE;
+ return true;
@@ -94 +94 @@
- $ret = FALSE;
+ return false;
@@ -96 +95,0 @@
- break;
@@ -102,0 +102 @@
+ else
@@ -104 +104 @@
- $ret = TRUE;
+ return true;
@@ -107 +107 @@
- $ret = FALSE;
+ return false;
@@ -109 +108,0 @@
- break;
@@ -114 +113 @@
- $ret = TRUE;
+ return true;
@@ -117 +116 @@
- $ret = FALSE;
+ return false;
@@ -119 +117,0 @@
- break;
@@ -124 +122 @@
- $ret = FALSE;
+ return false;
@@ -126 +123,0 @@
- return $ret;

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 9, '11 at 9:14a
activeDec 9, '11 at 9:14a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase