From:             smckenna at clanlineage dot com
Operating system: Linux
PHP version:      4.3.10
PHP Bug Type:     GetImageSize related
Bug description:  Warning: stream does not support seeking

Description:
------------
Purpose: upload images, store in db, write to PDF.
Problem: some JPEGs consistently fail on a getimagesize()
Error: "Warning: getimagesize(): stream does not support seeking in
/www/phototest.php on line 47"
Replicable: Yes.  I receive the same results on RedHat9 with PHP 4.3.10
and Debian (Sarge) with PHP 4.3.10-9
Config changes: I can only specify the Debian setup.  Fresh setup, only
the document root changed.

Test photos came from the same camera and were taken within minutes of
each other.
Photos are available at:
Error   
http://www.clanlineage.com/temp/IMG_0086.JPG   (132kb)
Success 
http://www.clanlineage.com/temp/IMG_0087.JPG   (113kb)

The included class is from other authors, so I have credited them in the
code.

Reproduce code:
---------------
http://www.clanlineage.com/temp/phototest.txt   (2kb)



Expected result:
----------------
Using JPEG image IMG_0087.JPG

Array ( [0] => 1024 [1] => 768 [2] => 2 [3] => width="1024" height="768"
[bits] => 8 [channels] => 3 [mime] => image/jpeg ) 


Actual result:
--------------
Using JPEG image IMG_0086.JPG

Warning: getimagesize(): stream does not support seeking in
/www/phototest.php on line 47


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

Reply via email to