store | blogs | forums | twitter | facebook | wiki | downloads | support portal
Atomic Secure Linux
It is currently Sun Oct 26, 2014 12:24 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: PHP and PCRE version
Unread postPosted: Wed Jan 27, 2010 8:52 am 
Offline
Forum User
Forum User

Joined: Tue Jun 27, 2006 7:20 am
Posts: 11
Location: Bristol, UK
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:
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:
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:
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


Top
 Profile  
 
 Post subject: Re: PHP and PCRE version
Unread postPosted: Wed Jan 27, 2010 9:00 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7943
Location: earth
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.


Top
 Profile  
 
 Post subject: Re: PHP and PCRE version
Unread postPosted: Wed Jan 27, 2010 11:15 am 
Offline
Forum User
Forum User

Joined: Tue Jun 27, 2006 7:20 am
Posts: 11
Location: Bristol, UK
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


Top
 Profile  
 
 Post subject: Re: PHP and PCRE version
Unread postPosted: Wed Jan 27, 2010 11:26 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7943
Location: earth
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


Top
 Profile  
 
 Post subject: Re: PHP and PCRE version
Unread postPosted: Wed Jan 27, 2010 12:36 pm 
Offline
Forum User
Forum User

Joined: Tue Jun 27, 2006 7:20 am
Posts: 11
Location: Bristol, UK
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


Top
 Profile  
 
 Post subject: Re: PHP and PCRE version
Unread postPosted: Wed Jan 27, 2010 4:02 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7943
Location: earth
It actually doesnt have anything since it hasnt even been started yet. :P


Top
 Profile  
 
 Post subject: Re: PHP and PCRE version
Unread postPosted: Mon Feb 01, 2010 6:10 am 
Offline
Forum User
Forum User

Joined: Thu Apr 24, 2008 4:58 am
Posts: 21
It would be great when PCRE got updated with UTF-8 support.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group