|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-08 15:33 UTC] tony2001@php.net
[2007-02-16 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 22 05:00:01 2025 UTC |
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}' );