|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-01-13 00:37 UTC] silvein at gmail dot com
[2010-01-27 14:50 UTC] mkoppanen@php.net
[2011-05-06 06:25 UTC] loranger at free dot fr
[2011-05-06 06:27 UTC] loranger at free dot fr
[2014-09-26 22:17 UTC] luke32j at msn dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
Description: ------------ Imagick::readImageFile fails to read an opened file handler. Reproduce code: --------------- <?php $f = fopen('ble.png', 'rb'); $img = new Imagick(); $img->readImageFile( $f ); $img->writeImage('foo.png'); fclose($f); ?> Expected result: ---------------- Read the opened file handler and create a PNG file named foo.png Actual result: -------------- PHP Fatal error: Uncaught exception 'ImagickException' with message 'Unable to read image from the filehandle' in /home/rolo/public_html/tmp/imagick.php:4 Stack trace: #0 /home/rolo/public_html/tmp/imagick.php(4): Imagick->readimagefile(Resource id #5) #1 {main} thrown in /home/rolo/public_html/tmp/imagick.php on line 4