<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PEAR - Spheron1</title>
	<atom:link href="https://www.spheron1.uk/tag/pear/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.spheron1.uk</link>
	<description></description>
	<lastBuildDate>Sat, 04 Jan 2014 11:33:06 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>ImageMagick and PHP 5.4</title>
		<link>https://www.spheron1.uk/2013/09/13/imagemagick-and-php-5-4/</link>
					<comments>https://www.spheron1.uk/2013/09/13/imagemagick-and-php-5-4/#respond</comments>
		
		<dc:creator><![CDATA[digitaldisaster]]></dc:creator>
		<pubDate>Fri, 13 Sep 2013 20:38:28 +0000</pubDate>
				<category><![CDATA[cPanel/WHM]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[PEAR]]></category>
		<category><![CDATA[PECL]]></category>
		<category><![CDATA[PHP 5.4]]></category>
		<category><![CDATA[WHM]]></category>
		<guid isPermaLink="false">https://www.spheron1.uk/?p=651</guid>

					<description><![CDATA[<p>When building the PHP imagick module for ImageMagick on a server running PHP 5.4 (a cPanel/WHM box in this case), you receive the following error: /root/tmp/pear/imagick/imagick_class.c: In function &#8216;zim_imagick_setfont&#8217;: /root/tmp/pear/imagick/imagick_class.c:1442: error: &#8216;struct _php_core_globals&#8217; has no member named &#8216;safe_mode&#8217; /root/tmp/pear/imagick/imagick_class.c:1442: error: &#8216;CHECKUID_CHECK_FILE_AND_DIR&#8217; undeclared (first use in this function) /root/tmp/pear/imagick/imagick_class.c:1442: error: (Each undeclared identifier is reported only once /root/tmp/pear/imagick/imagick_class.c:1442: error: for each&#46;&#46;&#46;</p>
<p>The post <a href="https://www.spheron1.uk/2013/09/13/imagemagick-and-php-5-4/">ImageMagick and PHP 5.4</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>When building the PHP imagick module for ImageMagick on a server running PHP 5.4 (a cPanel/WHM box in this case), you receive the following error:</p>
<blockquote><p>/root/tmp/pear/imagick/imagick_class.c: In function &#8216;zim_imagick_setfont&#8217;:<br />
/root/tmp/pear/imagick/imagick_class.c:1442: error: &#8216;struct _php_core_globals&#8217; has no member named &#8216;safe_mode&#8217;<br />
/root/tmp/pear/imagick/imagick_class.c:1442: error: &#8216;CHECKUID_CHECK_FILE_AND_DIR&#8217; undeclared (first use in this function)<br />
/root/tmp/pear/imagick/imagick_class.c:1442: error: (Each undeclared identifier is reported only once<br />
/root/tmp/pear/imagick/imagick_class.c:1442: error: for each function it appears in.)<br />
/root/tmp/pear/imagick/imagick_class.c:1442: error: &#8216;CHECKUID_NO_ERRORS&#8217; undeclared (first use in this function)<br />
/root/tmp/pear/imagick/imagick_class.c: In function &#8216;zim_imagick_setimageprogressmonitor&#8217;:<br />
/root/tmp/pear/imagick/imagick_class.c:9534: error: &#8216;struct _php_core_globals&#8217; has no member named &#8216;safe_mode&#8217;<br />
/root/tmp/pear/imagick/imagick_class.c:9534: error: &#8216;CHECKUID_CHECK_FILE_AND_DIR&#8217; undeclared (first use in this function)<br />
/root/tmp/pear/imagick/imagick_class.c:9534: error: &#8216;CHECKUID_NO_ERRORS&#8217; undeclared (first use in this function)<br />
make: *** [imagick_class.lo] Error 1<br />
ERROR: `make&#8217; failed</p></blockquote>
<p>The solution is to install the beta version of the module instead:</p>
<blockquote><p>pear config-set preferred_state beta<br />
pecl install imagick</p></blockquote><p>The post <a href="https://www.spheron1.uk/2013/09/13/imagemagick-and-php-5-4/">ImageMagick and PHP 5.4</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.spheron1.uk/2013/09/13/imagemagick-and-php-5-4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 0/65 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching using Redis

Served from: spheron1.uk @ 2026-06-27 10:26:01 by W3 Total Cache
-->