From: yann dot jouanin at intelunix dot fr Operating system: Gentoo 2007.1 PHP version: 5.2.6 PHP Bug Type: GetImageSize related Bug description: GetImageSize returns error 404 when no DNS AAAA answer
Description: ------------ With --enable-ipv6 on php, when using getimagesize with a url as argument the sequence is the following : DNS request : AAAA : ipv6 request AA : alias and A : name When there isn't any answer for the AAAA request, getimagesize return Error 404. With the ipv6 support disable, everything is ok. Reproduce code: --------------- $answer = getimagesize("http://ecx.images-amazon.com/images/I/51o-TDjsaZL._SL110_PIsitb-sm-arrow,TopRight,13,-17_OU01_.jpg"); Expected result: ---------------- Should give the size Actual result: -------------- Returns error 404 -- Edit bug report at http://bugs.php.net/?id=45519&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45519&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45519&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45519&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45519&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45519&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45519&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45519&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45519&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45519&r=support Expected behavior: http://bugs.php.net/fix.php?id=45519&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45519&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45519&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45519&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45519&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45519&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45519&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45519&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45519&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45519&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45519&r=mysqlcfg