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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: yann dot jouanin at intelunix dot fr
New email:
PHP Version: OS:

 

 [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

Pull Requests

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 Dec 26 11:01:30 2024 UTC