php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59594 imagick crashes webserver when opening image files
Submitted: 2011-01-28 05:42 UTC Modified: 2015-01-05 02:57 UTC
Votes:9
Avg. Score:4.7 ± 0.7
Reproduced:6 of 7 (85.7%)
Same Version:4 (66.7%)
Same OS:2 (33.3%)
From: tomkrawc at gmail dot com Assigned: mkoppanen (profile)
Status: Closed Package: imagick (PECL)
PHP Version: 5.3.1 OS: Windows 2003 and 7
Private report: No CVE-ID: None
 [2011-01-28 05:42 UTC] tomkrawc at gmail dot com
Description:
------------
On Windows with PHP 5.3 Imagick 3.0.1 crashes webserver. It happens when I execute: readImage() or constructor with file name in string.

I checked it on IIS 6 with PHP 5.3.2 VC9, NTS and on Windows 7 x64 with 32 bit WampServer (PHP 5.3.1 VC6 TS).


As discoused here http://news.php.net/php.pecl.dev/7949 examples from source code captcha.php and polygon work fine but thumbnail.php and watermark.php are crashing webservers.

Reproduce code:
---------------
$im = new Imagick();
$im->readImage(); // crash

or

$im = new Imagick('cat.jpg'); // crash



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-28 05:45 UTC] tomkrawc at gmail dot com
a small mistake in Reproduce code

$im = new Imagick();
$im->readImage('cat.jpg'); // crash
 [2011-01-28 06:13 UTC] mkoppanen@php.net
Are you using ImageMagick binaries from www.imagemagick.org or compiling your own?
 [2011-01-28 06:48 UTC] tomkrawc at gmail dot com
I use binaries from ImageMagick www.imagemagick.org (6.6.7, Q8, dynamic). Imagic was compiled by me with headers and libraries from instalation program of ImageMagick.
 [2011-01-28 07:37 UTC] mkoppanen@php.net
Have you installed Visual C++ 2010 Redistributable Package?
 [2011-01-28 08:52 UTC] tomkrawc at gmail dot com
I installed it on the machine with IIS6, then restarted. Still captcha.php and polygon.php wotk but watermark.php and thumbnail.php not.
 [2011-02-01 01:36 UTC] tomkrawc at gmail dot com
Yesterday I installed PHP 5.2.11 on my WampServer. I have  the same problems on it.
 [2011-02-27 05:31 UTC] shlomi at shlomi dot info
i have the same problem using Wamp:
PHP Extension Build : API20090626,TS,VC6 
imagick module version: 3.0.1
ImageMagick version: ImageMagick 6.6.7-10 2011-02-22 Q16

OS version: XP pro sp3

when i rum this king of code:
<?php
try{
    $im = new Imagick( 'logo.gif' );
}catch(Exception $e){
    echo $e->getMessage();
}
?>

i'm getting send/don't send windows' error message with the following details:
szAppName : httpd.exe
szAppVer : 2.2.14.0
szModName : msvcr100.dll     
szModVer : 10.0.30319.1
offset : 0008ae6e

appcompat.txt file content:
"
<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="httpd.exe" FILTER="GRABMI_FILTER_PRIVACY">
    <MATCHING_FILE NAME="ab.exe" SIZE="73802" CHECKSUM="0x8FCBB61E" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="ApacheBench command line utility" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="ab.exe" INTERNAL_NAME="ab.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:34:14" UPTO_LINK_DATE="09/29/2009 03:34:14" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="abs.exe" SIZE="81995" CHECKSUM="0xE4BDF64C" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="ApacheBench command line utility" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="ab.exe" INTERNAL_NAME="ab.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:34:59" UPTO_LINK_DATE="09/29/2009 03:34:59" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="apr_dbd_mysql-1.dll" SIZE="28771" CHECKSUM="0xCBE580B4" BIN_FILE_VERSION="1.3.9.0" BIN_PRODUCT_VERSION="1.3.9.0" PRODUCT_VERSION="1.3.9" FILE_DESCRIPTION="Apache Portable Runtime apr_dbd_mysql Module" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache Portable Runtime Project" FILE_VERSION="1.3.9" ORIGINAL_FILENAME="apr_dbd_mysql-1.dll" INTERNAL_NAME="apr_dbd_mysql-1" LEGAL_COPYRIGHT="Copyright (c) 2009 The Apache Software Foundation or its licensors, as applicable." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.3.9.0" UPTO_BIN_PRODUCT_VERSION="1.3.9.0" LINK_DATE="09/29/2009 03:41:06" UPTO_LINK_DATE="09/29/2009 03:41:06" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="apr_dbd_odbc-1.dll" SIZE="28770" CHECKSUM="0x780C87C3" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="09/29/2009 03:41:02" UPTO_LINK_DATE="09/29/2009 03:41:02" />
    <MATCHING_FILE NAME="apr_dbd_oracle-1.dll" SIZE="32868" CHECKSUM="0xEBF78A44" BIN_FILE_VERSION="1.3.9.0" BIN_PRODUCT_VERSION="1.3.9.0" PRODUCT_VERSION="1.3.9" FILE_DESCRIPTION="Apache Portable Runtime apr_dbd_oracle Module" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache Portable Runtime Project" FILE_VERSION="1.3.9" ORIGINAL_FILENAME="apr_dbd_oracle-1.dll" INTERNAL_NAME="apr_dbd_oracle-1" LEGAL_COPYRIGHT="Copyright (c) 2009 The Apache Software Foundation or its licensors, as applicable." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.3.9.0" UPTO_BIN_PRODUCT_VERSION="1.3.9.0" LINK_DATE="09/29/2009 03:41:04" UPTO_LINK_DATE="09/29/2009 03:41:04" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="apr_dbd_pgsql-1.dll" SIZE="28771" CHECKSUM="0x901B62D5" BIN_FILE_VERSION="1.3.9.0" BIN_PRODUCT_VERSION="1.3.9.0" PRODUCT_VERSION="1.3.9" FILE_DESCRIPTION="Apache Portable Runtime apr_dbd_pgsql Module" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache Portable Runtime Project" FILE_VERSION="1.3.9" ORIGINAL_FILENAME="apr_dbd_pgsql-1.dll" INTERNAL_NAME="apr_dbd_pgsql-1" LEGAL_COPYRIGHT="Copyright (c) 2009 The Apache Software Foundation or its licensors, as applicable." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.3.9.0" UPTO_BIN_PRODUCT_VERSION="1.3.9.0" LINK_DATE="09/29/2009 03:41:05" UPTO_LINK_DATE="09/29/2009 03:41:05" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="apr_dbd_sqlite3-1.dll" SIZE="28773" CHECKSUM="0xD194EF13" BIN_FILE_VERSION="1.3.9.0" BIN_PRODUCT_VERSION="1.3.9.0" PRODUCT_VERSION="1.3.9" FILE_DESCRIPTION="Apache Portable Runtime apr_dbd_sqlite3 Module" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache Portable Runtime Project" FILE_VERSION="1.3.9" ORIGINAL_FILENAME="apr_dbd_sqlite3-1.dll" INTERNAL_NAME="apr_dbd_sqlite3-1" LEGAL_COPYRIGHT="Copyright (c) 2009 The Apache Software Foundation or its licensors, as applicable." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.3.9.0" UPTO_BIN_PRODUCT_VERSION="1.3.9.0" LINK_DATE="09/29/2009 03:41:03" UPTO_LINK_DATE="09/29/2009 03:41:03" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="apr_dbm_db-1.dll" SIZE="24672" CHECKSUM="0xD8E56680" BIN_FILE_VERSION="1.3.9.0" BIN_PRODUCT_VERSION="1.3.9.0" PRODUCT_VERSION="1.3.9" FILE_DESCRIPTION="Apache Portable Runtime apr_dbm_db Module" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache Portable Runtime Project" FILE_VERSION="1.3.9" ORIGINAL_FILENAME="apr_dbm_db-1.dll" INTERNAL_NAME="apr_dbm_db-1" LEGAL_COPYRIGHT="Copyright (c) 2009 The Apache Software Foundation or its licensors, as applicable." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.3.9.0" UPTO_BIN_PRODUCT_VERSION="1.3.9.0" LINK_DATE="09/29/2009 03:41:07" UPTO_LINK_DATE="09/29/2009 03:41:07" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="apr_ldap-1.dll" SIZE="24671" CHECKSUM="0x7839B48" BIN_FILE_VERSION="1.3.9.0" BIN_PRODUCT_VERSION="1.3.9.0" PRODUCT_VERSION="1.3.9" FILE_DESCRIPTION="Apache Portable Runtime apr_ldap Module" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache Portable Runtime Project" FILE_VERSION="1.3.9" ORIGINAL_FILENAME="apr_ldap-1.dll" INTERNAL_NAME="apr_ldap-1" LEGAL_COPYRIGHT="Copyright (c) 2009 The Apache Software Foundation or its licensors, as applicable." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.3.9.0" UPTO_BIN_PRODUCT_VERSION="1.3.9.0" LINK_DATE="09/29/2009 03:41:00" UPTO_LINK_DATE="09/29/2009 03:41:00" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="htcacheclean.exe" SIZE="61524" CHECKSUM="0x91BA1DF9" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="Apache htcacheclean command line utility" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="htcacheclean.exe" INTERNAL_NAME="htcacheclean.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:34:15" UPTO_LINK_DATE="09/29/2009 03:34:15" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="htdbm.exe" SIZE="81997" CHECKSUM="0xDACA1666" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="Apache htdbm command line utility" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="htdbm.exe" INTERNAL_NAME="htdbm.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:34:16" UPTO_LINK_DATE="09/29/2009 03:34:16" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="htdigest.exe" SIZE="69712" CHECKSUM="0xC7E12EFF" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="Apache htdigest command line utility" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="htdigest.exe" INTERNAL_NAME="htdigest.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:34:16" UPTO_LINK_DATE="09/29/2009 03:34:16" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="htpasswd.exe" SIZE="77904" CHECKSUM="0xF5AF323C" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="Apache htpasswd command line utility" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="htpasswd.exe" INTERNAL_NAME="htpasswd.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:34:17" UPTO_LINK_DATE="09/29/2009 03:34:17" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="httpd.exe" SIZE="24645" CHECKSUM="0x760A59B8" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="Apache HTTP Server" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="httpd.exe" INTERNAL_NAME="httpd.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:41:10" UPTO_LINK_DATE="09/29/2009 03:41:10" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="httxt2dbm.exe" SIZE="53329" CHECKSUM="0x31401FA3" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="Apache httxt2dbm command line utility" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="httxt2dbm.exe" INTERNAL_NAME="httxt2dbm.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:34:18" UPTO_LINK_DATE="09/29/2009 03:34:18" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="libapr-1.dll" SIZE="135254" CHECKSUM="0x4BB9105" BIN_FILE_VERSION="1.3.9.0" BIN_PRODUCT_VERSION="1.3.9.0" PRODUCT_VERSION="1.3.9" FILE_DESCRIPTION="Apache Portable Runtime Library" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache Portable Runtime Project" FILE_VERSION="1.3.9" ORIGINAL_FILENAME="libapr-1.dll" INTERNAL_NAME="libapr-1" LEGAL_COPYRIGHT="Copyright (c) 2009 The Apache Software Foundation or its licensors, as applicable." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.3.9.0" UPTO_BIN_PRODUCT_VERSION="1.3.9.0" LINK_DATE="09/29/2009 03:48:03" UPTO_LINK_DATE="09/29/2009 03:48:03" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="libapriconv-1.dll" SIZE="36958" CHECKSUM="0x74D816ED" BIN_FILE_VERSION="1.2.1.0" BIN_PRODUCT_VERSION="1.2.1.0" PRODUCT_VERSION="1.2.1" FILE_DESCRIPTION="Apache Portable Runtime Library" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache Portable Runtime Project" FILE_VERSION="1.2.1" ORIGINAL_FILENAME="libapriconv-1.dll" INTERNAL_NAME="libapriconv-1" LEGAL_COPYRIGHT="Copyright 2000-2005 The Apache Software Foundation or its licensors, as applicable." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.2.1.0" UPTO_BIN_PRODUCT_VERSION="1.2.1.0" LINK_DATE="09/29/2009 03:40:59" UPTO_LINK_DATE="09/29/2009 03:40:59" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="libaprutil-1.dll" SIZE="188508" CHECKSUM="0xFACBC64" BIN_FILE_VERSION="1.3.9.0" BIN_PRODUCT_VERSION="1.3.9.0" PRODUCT_VERSION="1.3.9" FILE_DESCRIPTION="Apache Portable Runtime Utility Library" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache Portable Runtime Project" FILE_VERSION="1.3.9" ORIGINAL_FILENAME="libaprutil-1.dll" INTERNAL_NAME="libaprutil-1" LEGAL_COPYRIGHT="Copyright (c) 2009 The Apache Software Foundation or its licensors, as applicable." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.3.9.0" UPTO_BIN_PRODUCT_VERSION="1.3.9.0" LINK_DATE="09/29/2009 03:41:00" UPTO_LINK_DATE="09/29/2009 03:41:00" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="libeay32.dll" SIZE="1069056" CHECKSUM="0xDE964027" BIN_FILE_VERSION="0.9.8.12" BIN_PRODUCT_VERSION="0.9.8.12" PRODUCT_VERSION="0.9.8l" FILE_DESCRIPTION="OpenSSL Shared Library" COMPANY_NAME="The OpenSSL Project, http://www.openssl.org/" PRODUCT_NAME="The OpenSSL Toolkit" FILE_VERSION="0.9.8l" ORIGINAL_FILENAME="libeay32.dll" INTERNAL_NAME="libeay32" LEGAL_COPYRIGHT="Copyright ? 1998-2007 The OpenSSL Project. Copyright ? 1995-1998 Eric A. Young, Tim J. Hudson. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="0.9.8.12" UPTO_BIN_PRODUCT_VERSION="0.9.8.12" LINK_DATE="11/19/2009 09:21:15" UPTO_LINK_DATE="11/19/2009 09:21:15" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="libhttpd.dll" SIZE="274504" CHECKSUM="0xF020E608" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="Apache HTTP Server Core" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="libhttpd.dll" INTERNAL_NAME="libhttpd.dll" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:41:08" UPTO_LINK_DATE="09/29/2009 03:41:08" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="logresolve.exe" SIZE="20562" CHECKSUM="0x9FE31E7A" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="Apache logresolve command line pipe" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="logresolve.exe" INTERNAL_NAME="logresolve.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:34:18" UPTO_LINK_DATE="09/29/2009 03:34:18" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="ntwdblib.dll" SIZE="278800" CHECKSUM="0x305A51D" BIN_FILE_VERSION="2000.2.8.0" BIN_PRODUCT_VERSION="7.0.8.39" PRODUCT_VERSION="7.00.839" FILE_DESCRIPTION="SQL Server Client Library" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft SQL Server" FILE_VERSION="2000.02.08" ORIGINAL_FILENAME="NTWDBLIB.DLL" INTERNAL_NAME="" LEGAL_COPYRIGHT="Copyright ? Microsoft Corp. 1988-1998" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40000" VERFILETYPE="0x0" MODULE_TYPE="WIN32" PE_CHECKSUM="0x45E30" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2000.2.8.0" UPTO_BIN_PRODUCT_VERSION="7.0.8.39" LINK_DATE="02/08/2000 11:42:14" UPTO_LINK_DATE="02/08/2000 11:42:14" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="openssl.exe" SIZE="290894" CHECKSUM="0xA9A4C99" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="07/24/2009 02:22:36" UPTO_LINK_DATE="07/24/2009 02:22:36" />
    <MATCHING_FILE NAME="php5nsapi.dll" SIZE="28745" CHECKSUM="0x37C5C6C8" BIN_FILE_VERSION="5.3.1.0" BIN_PRODUCT_VERSION="5.3.1.0" PRODUCT_VERSION="5.3.1" FILE_DESCRIPTION="NSAPI" COMPANY_NAME="The PHP Group" PRODUCT_NAME="PHP" FILE_VERSION="5.3.1" ORIGINAL_FILENAME="php5nsapi.dll" INTERNAL_NAME="NSAPI SAPI" LEGAL_COPYRIGHT="Copyright ? 1997-2009 The PHP Group" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x50003" UPTO_BIN_FILE_VERSION="5.3.1.0" UPTO_BIN_PRODUCT_VERSION="5.3.1.0" LINK_DATE="11/19/2009 10:17:47" UPTO_LINK_DATE="11/19/2009 10:17:47" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="php5ts.dll" SIZE="5599302" CHECKSUM="0x15975F57" BIN_FILE_VERSION="5.3.1.0" BIN_PRODUCT_VERSION="5.3.1.0" PRODUCT_VERSION="5.3.1" FILE_DESCRIPTION="PHP Script Interpreter" COMPANY_NAME="The PHP Group" PRODUCT_NAME="PHP" FILE_VERSION="5.3.1" ORIGINAL_FILENAME="php5ts.dll" INTERNAL_NAME="PHP Script Interpreter" LEGAL_COPYRIGHT="Copyright ? 1997-2009 The PHP Group" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x50003" UPTO_BIN_FILE_VERSION="5.3.1.0" UPTO_BIN_PRODUCT_VERSION="5.3.1.0" LINK_DATE="11/19/2009 10:17:25" UPTO_LINK_DATE="11/19/2009 10:17:25" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="rotatelogs.exe" SIZE="49234" CHECKSUM="0x4D3434B4" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="Apache rotatelogs command line pipe" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="rotatelogs.exe" INTERNAL_NAME="rotatelogs.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:34:19" UPTO_LINK_DATE="09/29/2009 03:34:19" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="ssleay32.dll" SIZE="212992" CHECKSUM="0xA870FF67" BIN_FILE_VERSION="0.9.8.12" BIN_PRODUCT_VERSION="0.9.8.12" PRODUCT_VERSION="0.9.8l" FILE_DESCRIPTION="OpenSSL Shared Library" COMPANY_NAME="The OpenSSL Project, http://www.openssl.org/" PRODUCT_NAME="The OpenSSL Toolkit" FILE_VERSION="0.9.8l" ORIGINAL_FILENAME="ssleay32.dll" INTERNAL_NAME="ssleay32" LEGAL_COPYRIGHT="Copyright ? 1998-2007 The OpenSSL Project. Copyright ? 1995-1998 Eric A. Young, Tim J. Hudson. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="0.9.8.12" UPTO_BIN_PRODUCT_VERSION="0.9.8.12" LINK_DATE="11/19/2009 09:21:23" UPTO_LINK_DATE="11/19/2009 09:21:23" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="wintty.exe" SIZE="20564" CHECKSUM="0xCA00185B" BIN_FILE_VERSION="2.2.14.0" BIN_PRODUCT_VERSION="2.2.14.0" PRODUCT_VERSION="2.2.14" FILE_DESCRIPTION="Apache wintty console pipe" COMPANY_NAME="Apache Software Foundation" PRODUCT_NAME="Apache HTTP Server" FILE_VERSION="2.2.14" ORIGINAL_FILENAME="wintty.exe" INTERNAL_NAME="wintty.exe" LEGAL_COPYRIGHT="Copyright 2009 The Apache Software Foundation." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.2.14.0" UPTO_BIN_PRODUCT_VERSION="2.2.14.0" LINK_DATE="09/29/2009 03:34:20" UPTO_LINK_DATE="09/29/2009 03:34:20" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="zlib1.dll" SIZE="73782" CHECKSUM="0x822409DA" BIN_FILE_VERSION="1.2.3.0" BIN_PRODUCT_VERSION="1.2.3.0" PRODUCT_VERSION="1.2.3" FILE_DESCRIPTION="zlib data compression library" PRODUCT_NAME="zlib" FILE_VERSION="1.2.3" ORIGINAL_FILENAME="zlib1.dll" INTERNAL_NAME="zlib1.dll" LEGAL_COPYRIGHT="(C) 1995-2004 Jean-loup Gailly &amp; Mark Adler" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.2.3.0" UPTO_BIN_PRODUCT_VERSION="1.2.3.0" LINK_DATE="01/18/2008 06:17:14" UPTO_LINK_DATE="01/18/2008 06:17:14" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="kernel32.dll" SIZE="989696" CHECKSUM="0x2D998938" BIN_FILE_VERSION="5.1.2600.5781" BIN_PRODUCT_VERSION="5.1.2600.5781" PRODUCT_VERSION="5.1.2600.5781" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft? Windows? Operating System" FILE_VERSION="5.1.2600.5781 (xpsp_sp3_gdr.090321-1317)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="? Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xFE572" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.5781" UPTO_BIN_PRODUCT_VERSION="5.1.2600.5781" LINK_DATE="03/21/2009 14:06:58" UPTO_LINK_DATE="03/21/2009 14:06:58" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
</DATABASE>
"

do someone found any solution for that?
 [2011-05-06 06:33 UTC] mkoppanen@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PECL.


Is this still an issue?
 [2011-05-12 06:34 UTC] tomkrawc at gmail dot com
I installed ImageMagick 6.6.9-8 Q8 and compiled imagick 3.1.0b1. Now watermark.php and thumbnail.php work fine on my IIS 6.0!

The bug is fixed and may be closed.

Thanks!!!
 [2011-05-16 17:13 UTC] tk1 at dev dot freshsite dot pl
I installed imagick 3.1.0 b1 on my wamp

imagick module version 	3.1.0b1
imagick classes 	Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version 	ImageMagick 6.6.9-9 2011-05-10 Q8 http://www.imagemagick.org
ImageMagick copyright 	Copyright (C) 1999-2011 ImageMagick Studio LLC
ImageMagick release date 	2011-05-10
ImageMagick number of supported formats: 	215 

This version doesn't crash the web server but displays such error: 

Fatal error: Uncaught exception 'ImagickException' with message 'unable to open image `adriana.jpg': No such file or directory @ error/blob.c/OpenBlob/2587' in D:\wamp\www\imagick\thumbnail.php:11 Stack trace: #0 D:\wamp\www\imagick\thumbnail.php(11): Imagick->readimage('adriana.jpg') #1 {main} thrown in D:\wamp\www\imagick\thumbnail.php on line 11

Fatal error: Uncaught exception 'ImagickException' with message 'unable to open image `adriana.jpg': No such file or directory @ error/blob.c/OpenBlob/2587' in D:\wamp\www\imagick\watermark.php:15 Stack trace: #0 D:\wamp\www\imagick\watermark.php(15): Imagick->readimage('adriana.jpg') #1 {main} thrown in D:\wamp\www\imagick\watermark.php on line 15

The source file exists in D:\wamp\www\imagick\ directory and web server has rights to read and write in this directory. 
I have installed Visual C++ 2010 Redistributable Package.
 [2011-07-28 02:51 UTC] tomkrawc at gmail dot com
The bug may be closed. I shecked it with latest beta version. The only thing for Windows I had to do was change in example scripts to use absolute paths. This is the patch for thumbnail.php.

--- thumbnail_org.php	2011-02-19 16:23:44.000000000 +0100
+++ thumbnail.php	2011-07-27 15:08:21.339302100 +0200
@@ -7,14 +7,17 @@
 /* Create the Imagick object */
 $im = new Imagick();
  
+/* get images directory */
+$sDir = pathinfo( realpath('cat.jpg'), PATHINFO_DIRNAME) . '\\';
+
 /* Read the image file */
-$im->readImage( '/tmp/test.png' );
+$im->readImage( $sDir . 'cat.jpg');
  
 /* Thumbnail the image ( width 100, preserve dimensions ) */
 $im->thumbnailImage( 100, null );
  
 /* Write the thumbail to disk */
-$im->writeImage( '/tmp/th_test.png' );
+$im->writeImage( $sDir . 'th_cat.jpg' );
  
 /* Free resources associated to the Imagick object */
 $im->destroy(); 

So, the bug may be closed.
 [2011-09-04 03:01 UTC] tk1 at dev dot freshsite dot pl
I confirm. When using full paths then all works fine in version 3.1.0b1.
The bug may be closed.
 [2012-02-13 16:11 UTC] ilia dot stolov at gmail dot com
The problem happens to me too on the following code:
$im = new Imagick();
$im->readImage(); // crash w/o exception error

The image file:
theappsearcher.com/images/apps2/489379948/mzl.qqkhqalu.png
 [2013-12-03 11:34 UTC] mike@php.net
-Assigned To: +Assigned To: mkoppanen
 [2015-01-05 02:57 UTC] danack@php.net
-Status: Assigned +Status: Closed
 [2015-01-05 02:57 UTC] danack@php.net
Closing - the original reporter said they solved it by using absolute paths.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Aug 06 02:01:24 2020 UTC