Bug 151088

Summary: lang/php5: php 5.3.3_2 uses wrong pcre library, causing php web sites to fail
Product: Ports & Packages Reporter: freebsd
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description freebsd 2010-09-29 22:00:10 UTC
port of php 5.3.3_2 builds and installs OK, but web sites fail with pcre errors, e.g. in mediawika, traceback shows Internal pcre_fullinfo() error

Fix: 

In lang/php5/Makefile, change

               --with-pcre-regex=${LOCALBASE} \

to

               --with-pcre-regex

and rebuild and reinstall

phpinfo now reports pcre version 8.02 2010-03-19 which works; previously reported an older version (which, of course, I forgot to write down)

It's possible it would be better to adjust the Makefile to require devel/pcre to be a new enough version, but I didn't check.
How-To-Repeat: install pcre 5.3.3_2, apache 2, and mediawiki and try any mediawiki page
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-10-01 01:13:48 UTC
Responsible Changed
From-To: freebsd-bugs->ale

ports PR.
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2010-10-01 08:47:16 UTC
State Changed
From-To: open->closed

Update your pcre port.