php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57894 E_WARNING in Imagick::readImageFile() with HTTP streams
Submitted: 2007-10-31 08:58 UTC Modified: 2007-11-01 16:20 UTC
From: jia-yong dot ou at tilllate dot com Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5.2.1 OS: Gentoo 2.6.17
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: jia-yong dot ou at tilllate dot com
New email:
PHP Version: OS:

 

 [2007-10-31 08:58 UTC] jia-yong dot ou at tilllate dot com
Description:
------------
Imagick::readImageFile() gives an E_WARNING when I use fopen() 
with a HTTP URL and pass the file handle to 
Imagick::readImageFile().

The image seems to be okay, but I don't think it's supposed to 
be like that. Local files works fine.

Reproduce code:
---------------
$url = "http://www.php.net/images/php.gif";
$f = fopen($url, 'rb');
$image = new Imagick();
$image->readImageFile($f);
fclose($f);

Expected result:
----------------
No error

Actual result:
--------------
Warning: Imagick::readimagefile() [function.Imagick-
readimagefile]: 2523 bytes of buffered data lost during stream 
conversion!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-01 16:20 UTC] mkoppanen@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 20:01:28 2025 UTC