|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59771 setCompressionQuality not enabled when GMagick version > 1.3.7
Submitted: 2011-05-17 16:18 UTC Modified: 2011-05-21 07:38 UTC
From: steve at twitpic dot com Assigned:
Status: Closed Package: gmagick (PECL)
PHP Version: 5.3.3 OS: Ubuntu 10.10
Private report: No CVE-ID: None
 [2011-05-17 16:18 UTC] steve at twitpic dot com
setCompressionQuality is not being enabled, even when 
GraphicsMagick 1.3.7 or greater is installed on the system.

Reproduce code:
The constant GMAGICK_LIB_MASK is not getting defined correctly because on line 4570 of ./configure the $GRAPHICSMAGICK_VERSION_MASK is escaped-

$as_echo "#define GMAGICK_LIB_MASK \$GRAPHICSMAGICK_VERSION_MASK" >>confdefs.h

I know configure is being generated by phpize and config.m4, and I'm not 100% familiar with Autoconf but I think you need to use:

                AC_DEFINE_UNQUOTED(GMAGICK_LIB_MASK,$GRAPHICSMAGICK_VERSION_MASK,[Version mask for comparisons])

instead of

                AC_DEFINE(GMAGICK_LIB_MASK,$GRAPHICSMAGICK_VERSION_MASK,[Version mask for comparisons])

on line 39 of config.m4


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-21 07:38 UTC]
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 15:01:29 2024 UTC