#40404 [Opn->Fbk]: imap_open and inet6 name resolve
| From: | tony2001@php.net | Date: | Thu, 08 Feb 2007 15:33:41 +0000 |
| Subject: | #40404 [Opn->Fbk]: imap_open and inet6 name resolve | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108586@lists.php.net to get a copy of this message | ||
ID: 40404
Updated by: tony2001@php.net
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