Any work around for this problem?
That's not a bug in PHP. The page you linked to says:
The error comes from the c-client library. We can't do anything about it so report to the c-client library author(s) instead
Try updating your c-client/IMAP libraries (and PHP while you're at it -- PHP4 is deprecated)