Hello,
What would cause these two scripts (shown in their entirety) to generate the following errors?
<?php
echo inet_pton('::1');
?>
Warning: inet_pton(): Unrecognized address ::1 in C:\Program Files\PHP\ est.php on line 2
<?php
echo inet_ntop(str_repeat("\\0", 15)."\\1");
?>
Warning: inet_ntop(): An unknown error occured in C:\Program Files\PHP\ est.php on line 2
This error occurs when the script is run from Apache or from the CLI. The code is running under Windows XP SP3. PHP reports that IPv6 support is enabled when using [fphp]phpinfo[/fphp].
Here’s the PHP version info:
PHP 5.3.1 (cli) (built: Nov 19 2009 10:17:43)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
with Xdebug v2.1.0rc1-dev, Copyright (c) 2002-2010, by Derick Rethans
I couldn’t find anything when searching and the error messages themselves aren’t particularly helpful.
Thanks for any insights!