|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40404 imap_open and inet6 name resolve
Submitted: 2007-02-08 15:28 UTC Modified: 2007-02-16 01:00 UTC
From: heinemann dot juergen at hjcms dot de Assigned:
Status: No Feedback Package: IMAP related
PHP Version: 5.2.0 OS: LINUX
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: heinemann dot juergen at hjcms dot de
New email:
PHP Version: OS:


 [2007-02-08 15:28 UTC] heinemann dot juergen at hjcms dot de
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 

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}' );


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-08 15:33 UTC]
Please make sure your c-client library supports ipv6 addresses.
 [2007-02-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jul 31 23:01:24 2021 UTC