php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45519 getimagesize() returns error 404 when no DNS AAAA answer (IPV6 failure)
Submitted: 2008-07-15 12:26 UTC Modified: 2009-03-21 01:00 UTC
Votes:5
Avg. Score:4.4 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:1 (25.0%)
From: yann dot jouanin at intelunix dot fr Assigned:
Status: No Feedback Package: GetImageSize related
PHP Version: 5.2.6 OS: Gentoo 2007.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-07-15 12:26 UTC] yann dot jouanin at intelunix dot fr
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-13 13:35 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-03-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC