Page 1 of 1

PHP and PCRE version

Posted: Wed Jan 27, 2010 8:52 am
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

Re: PHP and PCRE version

Posted: Wed Jan 27, 2010 9:00 am
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.

Re: PHP and PCRE version

Posted: Wed Jan 27, 2010 11:15 am
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

Re: PHP and PCRE version

Posted: Wed Jan 27, 2010 11:26 am
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

Re: PHP and PCRE version

Posted: Wed Jan 27, 2010 12:36 pm
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

Re: PHP and PCRE version

Posted: Wed Jan 27, 2010 4:02 pm
by scott
It actually doesnt have anything since it hasnt even been started yet. :P

Re: PHP and PCRE version

Posted: Mon Feb 01, 2010 6:10 am
by tvanerp
It would be great when PCRE got updated with UTF-8 support.