php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33819 GetImageSize return nothing
Submitted: 2005-07-22 13:37 UTC Modified: 2005-07-22 16:44 UTC
From: scrazy77 at gmail dot com Assigned:
Status: Not a bug Package: GetImageSize related
PHP Version: 4.4.0 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2005-07-22 13:37 UTC] scrazy77 at gmail dot com
Description:
------------
Getimagesize return nothing when detect some image file.
<?php

$sURL = "http://blog.yam.com/pescado/2f940406.jpg";
print_r(getimagesize($sURL));

?>

Reproduce code:
---------------
<?php
$sURL = "http://blog.yam.com/pescado/2f940406.jpg";
print_r(getimagesize($sURL));
?>

Expected result:
----------------
Array
(
    [0] => xxx
    [1] => yyy
    [2] => 2
    [3] => width="500" height="354"
    [bits] => 8
    [channels] => 3
    [mime] => image/jpeg
)


Actual result:
--------------
nothing

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-22 16:44 UTC] tony2001@php.net
getimagesize() returns FALSE, use var_dump() to see it.
And your image is broken - it has some extraneous bytes in the beginning.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC