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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC