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

These are the windows builds downloaded from php.net and phpinfo shows
that ipv6 is enabled on each version I have tried.  Plus, php 5.3alpha2
works fine with that function with no other changes to the machine other
than the .ini file which needs to be modified slightly for each
version.

I'm not trying to be argumentative but I just don't understand what
else could possibly cause the problem.  I do realize that XP doesn't
have the greatest IPv6 implementation but the fact that it works with
5.3 must mean there is something different between the versions I
tested.  I'm willing to run some tests if you think it is necessary.


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

[2008-11-23 20:46:21] [EMAIL PROTECTED]

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.

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

[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