php.net |  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
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: smckenna at clanlineage dot com
New email:
PHP Version: OS:

 

 [2005-04-09 19:34 UTC] smckenna at clanlineage dot com
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-09 19:51 UTC] johannes@php.net
As the message says: Your stream doesn't support seeking 
so you need a stream_seek method... 
http://de2.php.net/stream_wrapper_register 
 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC