#33330 [NEW]: Can't connect to server,143: Error 0

From: Date: Tue, 14 Jun 2005 01:10:56 +0000
Subject: #33330 [NEW]: Can't connect to server,143: Error 0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80279@lists.php.net to get a copy of this message
From: pavel dot stratil-jun at fenix dot cz Operating system: Solaris 9 PHP version: 5.0.4 PHP Bug Type: IMAP related Bug description: Can't connect to server,143: Error 0 Description: ------------ Hi, when trying to connect to a remote imap server (i.e. www.sendmail.cz), imap_open fails with Can't connect to sendmail.cz,143: Error 0 - I checked remote accessibility to {www.sendmail.cz:143/imap/notls}INBOX from other people's horde/imp/test.php page - I can connect to localhost mailboxes without problem - I checked if firewall isn't misconfigured - I tried different about 10 different c-client versions (2000, 2001something, 2002b, 2002d, 2002e, the newest ones, ...) - I asked people with a working remote access from horde/imp/test.php to give me their configuration. Everything works fine for example on Debian Woody (3.0) with PHP 4.3.10 and 2002e. - I tried using the c-client's mtest utility. mtest can connect to the given mailbox without problems, for example with 2002e. - This problem is present since I ever tried to get remote access to imap servers. I use solaris 9 only, problem noted first with php 4.3.6, remained until now (5.0.4). Different configure lines have been used from rather basic ones to huge ones. - I don't use the recode extension My conclusions: a OS specific PHP bug (OS because it works on debian machines for sure, PHP because the mtest c-client utility can connect, unlike the imap_open call) Test code comment: the server www.sendmail.cz is a freemail service provider which I chosed for tests because of remote imap accessiblility Thanks for helping out. Am ready to reply to any questions. Pavel S. Reproduce code: --------------- <? $mbox = imap_open ("{www.sendmail.cz:143/imap/notls}INBOX", "***", "***"); echo imap_last_error(); ?> Expected result: ---------------- not an error message (= nothing) Actual result: -------------- Can't connect to sendmail.cz,143: Error 0 -- Edit bug report at http://bugs.php.net/?id=33330&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33330&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33330&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33330&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33330&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33330&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33330&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33330&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33330&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33330&r=support Expected behavior: http://bugs.php.net/fix.php?id=33330&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33330&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33330&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33330&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33330&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33330&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33330&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33330&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33330&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33330&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33330&r=mysqlcfg

« previous php.bugs (#80279) next »