<?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>ChiaoCheng.com &#187; PHP</title>
	<atom:link href="http://www.chiaocheng.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chiaocheng.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 04 Jun 2010 23:20:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>this version of PCRE is not compiled with PCRE_UTF8 support</title>
		<link>http://www.chiaocheng.com/2009/06/pcre-utf8-support/</link>
		<comments>http://www.chiaocheng.com/2009/06/pcre-utf8-support/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 01:24:02 +0000</pubDate>
		<dc:creator>chiao</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.crikeymate.com/?p=33</guid>
		<description><![CDATA[After installing wordpress, I got a lot of these errors in my apache wordpress error log.
PHP Warning:  preg_match_all() [&#60;a href='function.preg-match-all'&#62;function.preg-match-all&#60;/a&#62;]:
Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in ...
I am running apache 2.2.8 and it uses the built-in version 5 of pcre.
http://httpd.apache.org/docs/2.2/new_features_2_2.html
The problem is that version 5 of [...]]]></description>
			<content:encoded><![CDATA[<p>After installing wordpress, I got a lot of these errors in my apache wordpress error log.</p>
<pre>PHP Warning:  preg_match_all() [&lt;a href='function.preg-match-all'&gt;function.preg-match-all&lt;/a&gt;]:
Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in ...</pre>
<p>I am running apache 2.2.8 and it uses the built-in version 5 of pcre.</p>
<p><a href="http://httpd.apache.org/docs/2.2/new_features_2_2.html" target="_blank">http://httpd.apache.org/docs/2.2/new_features_2_2.html</a></p>
<p>The problem is that version 5 of pcre does not contain UTF-8 support.  So I had to recompile apache with a newer version of pcre. Luckily I have pcre 6.6 already installed on my linux box.</p>
<pre>&gt;&gt; rpm -qa |grep -i pcre
pcre-devel-6.6-2.el5_0.1
pcre-6.6-2.el5_0.1
pcre-6.6-2.el5_0.1</pre>
<p>So all I had to do is re-compile apache with the &#8220;&#8211;with-pcre&#8221; flag.</p>
<pre>./configure --with-pcre</pre>
<p>If you don&#8217;t know what version of pcre your php is using, create a phpinfo script and hit it with your broswer.  You should see&#8230;</p>
<p style="text-align: center;"><img class="size-full wp-image-34  aligncenter" title="php-pcre" src="http://www.chiaocheng.com/wp-content/uploads/2009/06/php-pcre.png" alt="pcre version" width="622" height="108" /></p>
<p>Happy compiling&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiaocheng.com/2009/06/pcre-utf8-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
