I'm currently working on FreeBSD 7.2. I've installed php5 and php5-extensions. The PCRE option was selected in the make config for php5-extensions.
It should be installed.
Yet, every time I try to use it rather than outputting what I expect it just gives me the following error message:
Warning: preg_replace() [function.preg-replace]: Internal pcre_fullinfo() error -3 in x.php
How can I troubleshoot and fix this?
Thanks!
edit: I tried following this, and nothing changed: http://forum.nginx.org/read.php?23,10735
edit2: When running phpinfo() I can see:
pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 3.9 02-Jan-2002
Directive Local Value Master Value pcre.backtrack_limit 100000 100000 pcre.recursion_limit 100000 100000
edit3: pkg_info | grep php
php5-5.2.9 PHP Scripting Language
php5-ctype-5.2.9 The ctype shared extension for php
php5-curl-5.2.9 The curl shared extension for php
php5-dom-5.2.9 The dom shared extension for php
php5-extensions-1.3 A "meta-port" to install PHP extensions
php5-filter-5.2.9 The filter shared extension for php
php5-hash-5.2.9 The hash shared extension for php
php5-iconv-5.2.9 The iconv shared extension for php
php5-json-5.2.9 The json shared extension for php
php5-mysql-5.2.9 The mysql shared extension for php
php5-mysqli-5.2.9 The mysqli shared extension for php
php5-pcre-5.2.9 The pcre shared extension for php
php5-pdo-5.2.9 The pdo shared extension for php
php5-pdo_mysql-5.2.9 The pdo_mysql shared extension for php
php5-posix-5.2.9 The posix shared extension for php
php5-session-5.2.9 The session shared extension for php
php5-simplexml-5.2.9 The simplexml shared extension for php
php5-spl-5.2.9 The spl shared extension for php
php5-sqlite-5.2.9 The sqlite shared extension for php
php5-tokenizer-5.2.9 The tokenizer shared extension for php
php5-xml-5.2.9 The xml shared extension for php
php5-xmlreader-5.2.9 The xmlreader shared extension for php
php5-xmlwriter-5.2.9 The xmlwriter shared extension for php
Not sure what else was wanted...