PHP 5.4 after-install: preg_match(): Compilation failed: unknown option bit(s) set at offset 0
<p>I recently upgraded my PHP to version 5.4.1 on my Lion OS X 64bit, I'm getting an error thrown in Codeigniter:</p>

<pre><code>Severity: Warning

Message: preg_match(): Compilation failed: unknown option bit(s) set at offset 0

Filename: core/Utf8.php

Line Number: 44
</code></pre>

<p>I Googled the problem, this seems to be a problem with the PCRE lib in PHP, well I followed <a href="http://www.hirmet.com/mac-os-x-lion-upgrade-to-php-5-4" rel="nofollow">this tutorial</a> which shows to install pcre with homebrew which I did (I'm running pcre 8.30) and this didn't solve the problem.</p>

<p>I've tried looking around for solutions, but I haven't came across one that helped - is there a method of fixing this PCRE lib problem?</p>
