|  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
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
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(",TopRight,13,-17_OU01_.jpg");

Expected result:
Should give the size

Actual result:
Returns error 404


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-13 13:35 UTC]
Please try using this CVS snapshot:
For Windows:

 [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: Fri Apr 19 22:01:28 2024 UTC