Quoting Bartek Krajnik <bar...@bmk-it.com>:

Hi,
below patch to resolve issue with:
PHP Fatal error: Method Horde_Imap_Client_Mailbox::__toString() must not throw an exception in /usr/lib/php/Horde/Imap/Client/Socket.php on line 0

root@a:/var/www/poczta/public_html# diff /usr/lib/php/Horde/Imap/Client/Mailbox.php.orig /usr/lib/php/Horde/Imap/Client/Mailbox.php
71c71,72
<         if (strcasecmp($mbox, 'INBOX') === 0) {
---
        //if (strcasecmp($mbox, 'INBOX') === 0) {
        if (strcasecmp($mbox, 'INBOX') == 0) {

This is incorrect. strcasecmp() MUST return an integer. So === is appropriate here.

98c99,100
<             return ($this->_utf7imap === true)
---
            //return ($this->_utf7imap === true)
            return ($this->_utf7imap == true)

Absolutely not. $_utf7imap boolean true has a meaning *completely* different than $_utf7imap having a non-empty value.

I don't know what problem you are trying to fix, because you haven't provided a backtrace.

michael

___________________________________
Michael Slusarz [slus...@horde.org]

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Reply via email to