#40404 [NEW]: imap_open and inet6 name resolve
| From: | heinemann dot juergen at hjcms dot de | Date: | Thu, 08 Feb 2007 15:28:51 +0000 |
| Subject: | #40404 [NEW]: imap_open and inet6 name resolve | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-108584@lists.php.net to get a copy of this message | ||
From: heinemann dot juergen at hjcms dot de
Operating system: LINUX
PHP version: 5.2.0
PHP Bug Type: IMAP related
Bug description: imap_open and inet6 name resolve
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 bug report at http://bugs.php.net/?id=40404&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40404&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40404&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40404&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40404&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40404&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40404&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40404&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40404&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40404&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40404&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40404&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40404&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40404&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40404&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40404&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40404&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40404&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40404&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40404&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40404&r=mysqlcfg