php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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}' );



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-08 15:33 UTC] tony2001@php.net
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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC