Re: gethostbyaddr and IPv6

From: Date: Sat, 22 Nov 2008 16:02:29 +0000
Subject: Re: gethostbyaddr and IPv6
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-283669@lists.php.net to get a copy of this message
On 11/22/2008 02:17 AM, Lars Torben Wilson wrote:
2008/11/21 Glen Carreras<carrerasg@noesnada.com>:
On 11/22/2008 12:10 AM, Lars Torben Wilson wrote:
Hi Glen, Works for me. IPv6 support was added in 2001. You didn't say what version of PHP you are having this problem with, so it's hard to say why yours doesn't have support for it. Perhaps it was configured with --disable-ipv6 for some reason, or compiled on a system without the necessary libraries installed (which would be somewhat surprising). Torben
Thanks for the confirmation that it works Torben, This is version 5.2 (Windows binaries) and according to phpinfo ipv6 is enabled. Hmmm.... well, at least I now know for sure that it works for someone else and I can start exploring other avenues. I'm starting to think this is another problem resulting from Microsofts poor implementation of IPv6 on XP. Glen
Hi Glen, I suspect that you may be correct--I generally don't run Windows (certainly not as a server) so I can't be sure; someone with more knowledge of Windows internals will have to field that one for you. With any luck you might find something in the user notes which leads you to a way to solve your problem using some other function or idea. Just for future reference, if you're having problems it will help people to answer your questions if you specify your PHP version and OS etc (where 'etc' means 'and all other relevant information, which of course won't be obvious--hehe) when writing the original question. I ain't tryin' to be some kind of netiquette freak here--just trying to help out. :) Anyway, good luck on your quest. Regards, Torben
Torben.. Indeed, after re-reading my initial post I can see I was lacking a little in the information department. I appreciate your help. Just to follow-up on this. I installed PHP 5.3alpha as a test and the function does work as expected. (although there are other issues which preclude me from using that version at this time) I then tried 5.2.7RC4 and the function no longer worked. So it looks like a problem with that version series. I suppose I should raise a bug report and see if anything can be done while it's still in the RC phase. Thanks again, Glen

« previous php.general (#283669) next »