Bug 694007

Summary: PHP53 breaks internationalisation
Product: Red Hat Enterprise Linux 5 Reporter: James Findley <sixy>
Component: php53Assignee: Joe Orton <jorton>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.6   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-18 12:28:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description James Findley 2011-04-06 09:05:33 UTC
Description of problem:

The PHP53 build supplied doesn't work for internationalized/utf-8 input.


Version-Release number of selected component (if applicable):


How reproducible:
Always


Steps to Reproduce:
1. php -r 'print (preg_match("/\pL/u", "a"));'
2.
3.
  
Actual results:
Nothing


Expected results:
Should return 1

Additional info:

Comment 1 Joe Orton 2011-07-16 15:38:59 UTC
That works for me:

# php -r 'print (preg_match("/\pL/u", "a"));'; echo
# rpm -qf /usr/bin/php
cli-5.3.3-1.el5_6.1

What arch are you on?

Comment 2 Joe Orton 2011-07-16 15:39:34 UTC
Oops, bad copy and paste.

# rpm -qf /usr/bin/php
php53-cli-5.3.3-1.el5_6.1

Comment 3 Joe Orton 2011-07-16 15:40:18 UTC
Third time lucky, apologies for the bug spam.

# php -r 'print (preg_match("/\pL/u", "a"));'; echo
1
# rpm -qf /usr/bin/php
php53-cli-5.3.3-1.el5_6.1
# uname -m
x86_64

Comment 4 James Findley 2011-07-18 12:15:02 UTC
Apologies for the noise - after further investigation the issue appears to be that this is actually the fault of pcre-6.6-2.el5_1.7, and updating to pcre-6.6-6.el5_6.1 fixes the issue.

This can be closed.

Comment 5 Joe Orton 2011-07-18 12:28:23 UTC
Great, thanks a lot for tracking that down.