From: jh2000 at root24 dot eu Operating system: Debian PHP version: 5.2.9 PHP Bug Type: Network related Bug description: file_get_contents causes kernel to load ipv6-modul
Description: ------------ php with ipv6 support tris to get ipv6 ready even if it´s not needed. I noticed this while updating the kernel to enable ipv6. I haven't done a restart yet, so there is the ipv6 module for the new kernel and the old kernel without ipv6 still running, php does something which causes the system to try to load the module (failing, as expected since it´s the wrong version) There should just be an additional check whether php realy needs ipv6 for the url or not. (the target url has no AAAA entry and no ipv6 so far) Reproduce code: --------------- --- >From manual page: function.file-get-contents --- <? echo file_get_contents("http://somewhere.internet.tld/file"); ?> Expected result: ---------------- content of url Actual result: -------------- content of url (with ipv6-failure message in system-log) -- Edit bug report at http://bugs.php.net/?id=47709&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47709&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47709&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47709&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47709&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47709&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47709&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47709&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47709&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47709&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47709&r=support Expected behavior: http://bugs.php.net/fix.php?id=47709&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47709&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47709&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47709&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47709&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47709&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47709&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47709&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47709&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47709&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47709&r=mysqlcfg