Pcre Issue

jjma

Verified User
Joined
Mar 29, 2004
Messages
275
Location
Edinburgh,Scotland
Have upgraded to apache 2 from version 1 and installed the latest pcre but php still shows the old 8.02 version. Checked versions.txt and 8.20 is listed. Ran pcretest:

[root@sp2 custombuild]# /usr/local/bin/pcretest -C
PCRE version 8.20 2011-10-21
Compiled with
UTF-8 support
Unicode properties support
No just-in-time compiler support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack


So it is installed. Centos uses a rpm for pcre on the system as well:

[root@sp2 custombuild]# rpm -qi pcre
Name : pcre Relocations: /usr
Version : 6.6 Vendor: CentOS
Release : 6.el5_6.1 Build Date: Thu 31 Mar 2011 01:08:47 AM BST
Install Date: Sat 16 Apr 2011 11:54:41 AM BST Build Host: builder10.centos.org
Group : System Environment/Libraries Source RPM: pcre-6.6-6.el5_6.1.src.rpm
Size : 234389 License: BSD
Signature : DSA/SHA1, Fri 01 Apr 2011 04:07:11 PM BST, Key ID a8a447dce8562897
URL : http://www.pcre.org/
Summary : Perl-compatible regular expression library
Description :
Perl-compatible regular expression library.
PCRE has its own native API, but a set of "wrapper" functions that are based on
the POSIX API are also supplied in the library libpcreposix. Note that this
just provides a POSIX calling interface to PCRE: the regular expressions
themselves still follow Perl syntax and semantics. The header file
for the POSIX-style functions is called pcreposix.h.

Configure.php5 has the following:

--with-pcre-regex=/usr/local \

Rebuilt php:

./build php n

Still old version showing? Tried to remove the pcre-regex from the configure line but pcre still installed?

Need to update the pcre library as some of my cms's are falling over with the old version.

Jon
 
Cause you probably didnt put it in the custom folder
 
Back
Top