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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 16:01:29 2024 UTC