From: receiver at timreeves dot de Operating system: Any PHP version: 7.2.2 Package: Website problem Bug Type: Bug Bug description:php.net has an IPv6 assigned but web server is unreachable
Description: ------------ As stated, the website www.php.net has an IPv6 address assigned in DNS - 2001:660:7401:211::36 - but is not reachable via webserver. I discovered this the hard way: I tried to install software on a Debian-8 Server which does this while checking requirements: file_get_contents("http://www.php.net/releases/index.php?serialize=1"); On Debian 8 (Hetzner, Germany, with Plesk Onyx) this hangs until the webserver times out, the software cannot be installed. On Ubuntu Servers and other Webhosting Packages this does not occur, either becuae IPv4 is preferred or the OS does not hang on IPv6 but soon goes to IPv4. I cannot find any way around this using PHP open URL, But id is possible to get around it using curl in PHP and passing CURL_IPRESOLVE_V4 option - that works fine. Test script: --------------- http://ipv6-test.com/validate.php and enter www.php.net -- Edit bug report at https://bugs.php.net/bug.php?id=75974&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75974&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75974&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75974&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75974&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75974&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75974&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75974&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75974&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75974&r=support Expected behavior: https://bugs.php.net/fix.php?id=75974&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75974&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75974&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75974&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75974&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75974&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75974&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75974&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75974&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75974&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75974&r=mysqlcfg -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php