From:             dnied at tiscali dot it
Operating system: Linux, i386
PHP version:      5.3.13
Package:          GetImageSize related
Bug Type:         Bug
Bug description:getimagesize does not work with all supported images

Description:
------------
The getimagesize function does not work with some (allegedly supported)
images. I could not observe this on images stored locally, so it only seems
to affect images retrieved via the http wrapper.

FWIW, URL length doesn't seem to affect this: I tried a shortened URL for
the image that didn't work, and it still didn't work.

Test script:
---------------
~> php -r '$imgInfo =
getimagesize("http://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/Disney_Concert_Hall_by_Carol_Highsmith_edit2.jpg/767px-Disney_Concert_Hall_by_Carol_Highsmith_edit2.jpg";);
print_r($imgInfo);'
~>
~>
~> php -r '$imgInfo =
getimagesize("https://bugs.php.net/images/logo.gif";);print_r($imgInfo);'
Array
(
    [0] => 130
    [1] => 67
    [2] => 1
    [3] => width="130" height="67"
    [bits] => 8
    [channels] => 3
    [mime] => image/gif
)
~>

Expected result:
----------------
An array of image properties, for both images

Actual result:
--------------
A boolean false on the 1st image, the expected array of image properties on
the 2nd one.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=62284&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62284&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62284&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62284&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62284&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62284&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62284&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62284&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62284&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62284&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62284&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62284&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62284&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62284&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62284&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62284&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62284&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62284&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62284&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62284&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62284&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62284&r=mysqlcfg

Reply via email to