PHP and PCRE version

Support/Development for PHP
davej
Forum User
Forum User
Posts: 11
Joined: Tue Jun 27, 2006 7:20 am
Location: Bristol, UK
Contact:

PHP and PCRE version

Unread post by davej »

Hi,

I've been happily using the atomic php packages on RHEL5, currently php-5.2.12-2.el5.art . Recently hit an issue where the IDS library used by CiviCRM threw up warnings like:

Code: Select all

Compilation failed: support for \P, \p, and \X has not been compiled at offset 1
due to the PCRE library lacking Unicode properties support. The error occurs on one server, running the atomic php packages, but not on another RHEL5 server running php-5.2 packages from another repo. Both servers are on pcre-6.6-2.el5_1.7 .

phpinfo for server with atomic php:
./configure has '--with-pcre-regex=/usr'

Code: Select all

PCRE (Perl Compatible Regular Expressions) Support 	enabled
PCRE Library Version 	6.6 06-Feb-2006
phpinfo for server with other repo's php:
./configure has no mention of pcre

Code: Select all

PCRE (Perl Compatible Regular Expressions) Support 	enabled
PCRE Library Version 	7.9 2009-04-11
I.e. without the '--with-pcre-regex=/usr' flag, it appears to use a more up-to-date PCRE, presumably built-in and with Unicode properties support. If so, could the atomic packages use the same approach?

Thanks,

Dave
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: PHP and PCRE version

Unread post by scott »

Thats sticking with the upstream (meaning redhat's) design, which is to use the system provided pcre library rather than an internal one bundled with PHP.
davej
Forum User
Forum User
Posts: 11
Joined: Tue Jun 27, 2006 7:20 am
Location: Bristol, UK
Contact:

Re: PHP and PCRE version

Unread post by davej »

Thanks for the quick reply, Scott. I found a post suggesting there was an atomic pcre rpm but I don't see it at http://www.atomicorp.com/channels/atomi ... 6_64/RPMS/ . Next option may be this:

http://gaarai.com/2009/01/31/unicode-su ... -and-pcre/

Cheers,

Dave
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: PHP and PCRE version

Unread post by scott »

Someone else was asking about that in the irc channel the other day. An update to pcre is in the build queue now, so it should be out in a day or so in atomic-testing
davej
Forum User
Forum User
Posts: 11
Joined: Tue Jun 27, 2006 7:20 am
Location: Bristol, UK
Contact:

Re: PHP and PCRE version

Unread post by davej »

Hi Scott,

That's good news, does the new pcre package have Unicode properties support?

I think there's an argument for using a recent, non-RedHat pcre when using recent, non-RedHat php packages, since apps requiring recent php will expect this - I get the impression that it's the norm to be using a php-bundled pcre library if using recent php. So I'd vote for that, but I don't have a vote and I can see your reasons for going with the system lib. FWIW Rackspace's php-5.2 packages appear to use php-bundled pcre library.

An updated pcre system lib with Unicode properties support would be a very acceptable substitute. :)

Thanks again for your quick, informative replies and your excellent repos.

Dave J
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: PHP and PCRE version

Unread post by scott »

It actually doesnt have anything since it hasnt even been started yet. :P
tvanerp
Forum User
Forum User
Posts: 21
Joined: Thu Apr 24, 2008 4:58 am

Re: PHP and PCRE version

Unread post by tvanerp »

It would be great when PCRE got updated with UTF-8 support.
Post Reply