ID: 40404 Updated by: [EMAIL PROTECTED] Reported By: heinemann dot juergen at hjcms dot de -Status: Open +Status: Feedback Bug Type: IMAP related Operating System: LINUX PHP Version: 5.2.0 New Comment:
Please make sure your c-client library supports ipv6 addresses. Previous Comments: ------------------------------------------------------------------------ [2007-02-08 15:28:51] heinemann dot juergen at hjcms dot de Description: ------------ I have inet6 Network and following Problems by imap_open. If writing: imap_open( '{imap.myhostname.tld}:143', ... ) Then imap not connected and write error with invalid Address imap_open must rewrite inet6 adresses to [::1] this hack works Reproduce code: --------------- [error] [client 2002:c0a8:1402::1] PHP Notice: Unknown: Connection failed to myhostname.tld,143: Verbindung saufbau abgelehnt (errflg=1)..... Expected result: ---------------- $IMAP_ADDRESS = @gethostbyname( $_SERVER['HTTP_HOST'] ); if ( ereg( "::", $IMAP_ADDRESS ) ) define( 'MBOX_REALM', '{[' . $IMAP_ADDRESS . ']:143}' ); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40404&edit=1