ID:               46645
 Updated by:       [EMAIL PROTECTED]
 Reported By:      carrerag at hotmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Network related
 Operating System: Windows XP
 PHP Version:      5.2.7RC4
 New Comment:

The error message is displayed only when ipv6 support is disabled in
PHP (else you get "Address is not a valid IPv4 or IPv6 address"). Maybe
you compiled PHP without ipv6 support, or your system does not support
ipv6.


Previous Comments:
------------------------------------------------------------------------

[2008-11-22 16:50:36] carrerag at hotmail dot com

Description:
------------
gethostbyaddr() function does not work properly. At least not on my
Windows XP platform.  This is with both versions 5.2.6 and with the
latest snapshot 5.2.7RC4.  
This function does work properly in version 5.3alpha however, I cannot
use that version due to other compatibility issues.

Reproduce code:
---------------
<?php
echo gethostbyaddr ( '2001:470:0:64::2' );
?>

Expected result:
----------------
Return "ipv6.he.net"

Actual result:
--------------
PHP Warning:  gethostbyaddr() [<a
href='function.gethostbyaddr'>function.gethostbyaddr</a>]: Address is
not in a.b.c.d form in C:\www\tests\saved\host.php on line 2


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46645&edit=1

Reply via email to