From:             joris dot beckers at skynet dot be
Operating system: Windows 2000 SP4
PHP version:      4CVS-2003-11-12 (stable)
PHP Bug Type:     GetImageSize related
Bug description:  "getimagesize(): stream does not support seeking" when using remote 
files

Description:
------------
getImageSize() is not working with remote files.
It always gives a warning with every image file.
Imagefiles were checked and were not corrupted.
Local files work just fine.

A search on google revealed then many sites encounter this problem.

http://www.google.be/search?q=%22getimagesize%28%29%3A+stream+does+not+support+seeking%22&ie=UTF-8&oe=UTF-8&hl=nl&meta=

Are there any solutions?

PHP is running as an ISAPI module on IIS 5.0

Reproduce code:
---------------
<?
$srcSize = getImageSize("http://bugs.php.net/gifs/logo-bug.gif";);
print_r($srcSize);
?>

Expected result:
----------------
Array
(
    [0] => 130
    [1] => 67
    [2] => 1
    [3] => width="130" height="67"
)


Actual result:
--------------
Warning: getimagesize(): stream does not support seeking in test.php on
line 2

-- 
Edit bug report at http://bugs.php.net/?id=26216&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26216&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26216&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26216&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26216&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26216&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26216&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26216&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26216&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26216&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26216&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26216&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26216&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26216&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26216&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26216&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26216&r=float

Reply via email to