Bug 136985

Summary: lang/php5: pcre not working correctly
Product: Ports & Packages Reporter: G. Georgiev <hipo>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description G. Georgiev 2009-07-22 11:30:05 UTC
When compiling /usr/ports/lang/php5 with apache module support a problem occurs and thus pcre doesn't render correctly.
In my case squirrelmail and joomla failed with an errors similar to
"[Thu Jun 11 20:39:15 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  preg_replace() [function.preg-replace]: Internal pcre_fullinfo() error -3 in somefile.php on line 169
[Thu Jun 11 20:39:15 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  preg_match() [function.preg-replace]: Internal pcre_fullinfo() error -3 in somefile.php on line 275
"

The solution is pretty straight forward the configure options in the Makefile needs to be added -with-pcre-regex=yes compile option.

Fix: 

Add -with-pcre-regex=yes to the configure options in ports Makefile
How-To-Repeat: Just install the port and try Joomla or Squirrelmail
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-07-23 02:51:00 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Fix synopsis and assign.
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2009-07-23 09:06:31 UTC
State Changed
From-To: open->closed

The solution is simpler, selecting the correct option at 
the php5-pcre port config dialog :-)
Comment 3 admin 2009-07-23 09:31:48 UTC
Actually I forgot to tell that I did have installed php5-pcre as 
external module and selected php5-pcre from the port config dialog, thus 
I felt responsible to report the bug. Without that "fix" php5 reported 
having PCRE in phpinfo() even though php pcre wasn't working correctly.

-- 
- - -

Georgi Georgiev
Mobile: +359889085362


Senior System Administrator
design.bg Studios Bulgaria

E: admin@design.bg
M: +359889085362
W: www.design.bg
	
HQ Bulgaria:
9000 Varna, Bulgaria,	
address: 53-55 Vladislav Varnenchik Blvd., 3rd floor	
T: +359 (0)52 611 800
F: +359 (0)52 611 900

HQ Western Europe:
Zurich, Switzerland
8152 Glattbrugg, Europastrasse 30
T: +41 (0)43 266 31 06
F: +41 (0)43 266 31 07
- - -

Please consider your environmental responsibility before printing this e-mail!