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

Bug #3438 disconnect() method generates PHP error
Submitted: 2005-02-11 21:30 UTC
From: miker at life-captured dot com Assigned: amistry
Status: Closed Package: Net_IMAP
PHP Version: 5.0.3 OS: GNU/Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-02-11 21:30 UTC] miker at life-captured dot com
Description: ------------ When calling disconnect() method for Net_IMAP object, a PHP fatal error is generated. Reproduce code: --------------- ... require_once('Net/IMAP.php'); ... $imap = new Net_IMAP($host, $port); print ("Connected successfully...\n"); ... $ret = $imap->disconnect(); /* ERROR OCCURS HERE!!!! */ print "Logout result = " . $ret . "\n"; Expected result: ---------------- Connected successfully... Logout result = * BYE IMAP4rev1 Server terminating connection Actual result: -------------- Connected successfully... <br /> <b>Fatal error</b>: Cannot use string offset as an array in <b>/usr/local/lib/php/Net/IMAP.php</b> on line <b>180</b><br />

Comments

 [2005-10-15 18:21 UTC] oliver at realtsp dot com
Hi there I was getting the same error for some time. Net_IMAP v1.0.3 php version 5.0.3. I looked at the code in IMAPProtocol.php Line 701 in the cmdLogout() function. if you change this: return $args; // not for now //return $this->_genericImapResponseParser($args,$cmdid); to this return $this->_genericImapResponseParser($args,$cmdid); (ie uncomment the proper processing of the return arguments) then it works fine! Not sure why these were ever commented out..?? Regards Oliver
 [2006-03-22 04:38 UTC] amistry at php dot net (Anish Mistry)
I've committed a fix for this in the CVS. Please verify it works for you.
 [2006-08-09 07:01 UTC] tom at tiri dot li (Thomas Baumann)
I tried out the above setting, then the fatal error is gone away - but now I got the error Notice: Undefined variable: command in /usr/share/php/Net/IMAPProtocol.php on line 2709 Greetings Thomas http://inhalt.serviert.de
 [2006-09-09 21:40 UTC] amistry at php dot net (Anish Mistry)
Do you see this in the CVS version?
 [2006-11-08 07:44 UTC] feathercat317 at yahoo dot com (jeanettehorsley)
ALL I WANT IS OUT
 [2006-11-26 18:19 UTC] mortonda at dgrmm dot net (David Morton)
I also ran into the Undefined variable: command problem, and resolved by changing $command to $token on line around 2707 or 2709
 [2007-02-12 20:48 UTC] cellog (Greg Beaver)
please mark this as fixed, open, or bogus changing to open, as possible fix is suggested in the last comment
 [2007-02-12 22:00 UTC] hudeldudel at php dot net (Sebastian Ebling)
I can not reproduce this with current CVS version. My unit tests don't show this error.
 [2008-10-18 22:20 UTC] notromda (David Morton)
Every time we have a new download of our system, we have to direct people to this bug and edit their file to fix this.... Could you please release a new version with this fixed?
 [2008-11-24 08:47 UTC] lunix (Mick Pollard)
When will we see the next version of this ? Should this 'project' be handed to a new maintainer because several years and still no release = abandoned in my eyes. The bug that David Morton mentions above is a pita. Frustrated.
 [2008-11-24 23:48 UTC] hudeldudel (Sebastian Ebling)
Sorry for the delay. It's true, that I don't have the time to maintain this package as it should be done. I will hab holidays on beginning of december and then make a new release with the patches sent. I just want to test the patches before. regards Sebastian
 [2008-11-26 00:36 UTC] lunix (Mick Pollard)
That would be great. Sorry if I come across a little harsh. It wasn't intended.