|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32645 Warning: stream does not support seeking
Submitted: 2005-04-09 19:34 UTC Modified: 2005-04-09 20:09 UTC
From: smckenna at clanlineage dot com Assigned:
Status: Not a bug Package: GetImageSize related
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
 [2005-04-09 19:34 UTC] smckenna at clanlineage dot com
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   (132kb)
Success   (113kb)

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

Reproduce code:
---------------   (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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-09 19:51 UTC]
As the message says: Your stream doesn't support seeking 
so you need a stream_seek method... 
 [2005-04-09 20:09 UTC] smckenna at clanlineage dot com
I started reading up on streams (and classes) last night.  I wouldn't have posted but I thought with images from the same camera, what worked for one would for all.  I cut and pasted the sample code on the link you provided and it worked.

Thanks for the quick reply and sorry to have bothered you.
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 15:01:26 2019 UTC