|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-07-12 06:13 UTC] martin at katoni dot dk
[2018-07-12 06:16 UTC] martin at katoni dot dk
[2021-08-02 12:03 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-08-02 12:03 UTC] cmb@php.net
[2021-08-15 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 07:00:01 2025 UTC |
Description: ------------ This bug only occurs for some image resources. In the following example php fails with error "Segmentation fault": Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000559dbe907bcf in _php_stream_seek () Apperatently this is only caused by ImageMagick::writeImageFile(fopen('php://temp', 'w+')) ImageMagick::writeImageFile(fopen('/tmp/image.jpg', 'w+')) and ImageMagick::writeImage('/tmp/image.jpg') works fine. I've attached the failing TIFF image as a patch file. Test script: --------------- $imagick = new Imagick('/tmp/89538763640163'); $imagick->setInterlaceScheme(Imagick::INTERLACE_PLANE); $imagick->stripImage(); $imagick->thumbnailImage(140, 200, true, true); $handle = fopen('php://temp', 'w+'); $written = $imagick->writeImageFile($handle);