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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: scrazy77 at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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