I have found that this class goes in an endless loop.
By adding a echo on $response in the get_server_responce function, it keeps returning the following line in an endless loop:
Response: -ERR Protocol error. Connection is closed. 10
|2009-12-22 13:33:12 - In reply to message 1 from Colin Jenkins|
|Dont do that you will mess up the connection to the server.|
|2012-03-30 08:01:01 - In reply to message 1 from Colin Jenkins|
|If you are still having this issue you might be interested in testing it with me rewrite of this class, it can be found here: https://github.com/AJenbo/PHP-imap|