From nobody@FreeBSD.org  Wed Jul 22 10:26:17 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5379C106571A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Jul 2009 10:26:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 4147F8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Jul 2009 10:26:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n6MAQG5j067761
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Jul 2009 10:26:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n6MAQGns067760;
	Wed, 22 Jul 2009 10:26:16 GMT
	(envelope-from nobody)
Message-Id: <200907221026.n6MAQGns067760@www.freebsd.org>
Date: Wed, 22 Jul 2009 10:26:16 GMT
From: "G. Georgiev" <hipo@design.bg>
To: freebsd-gnats-submit@FreeBSD.org
Subject: php pcre not working correctly
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         136985
>Category:       ports
>Synopsis:       lang/php5: pcre not working correctly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 22 10:30:05 UTC 2009
>Closed-Date:    Thu Jul 23 08:07:33 UTC 2009
>Last-Modified:  Thu Jul 23 09:00:04 UTC 2009
>Originator:     G. Georgiev
>Release:        FreeBSD 7.2-RELEASE
>Organization:
>Environment:
FreeBSD pcfreak 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009     root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
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.
>How-To-Repeat:
Just install the port and try Joomla or Squirrelmail
>Fix:
Add -with-pcre-regex=yes to the configure options in ports Makefile

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jul 23 01:51:00 UTC 2009 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=136985 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Thu Jul 23 08:06:31 UTC 2009 
State-Changed-Why:  
The solution is simpler, selecting the correct option at 
the php5-pcre port config dialog :-) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=136985 

From: "G. Georgiev" <admin@design.bg>
To: bug-followup@FreeBSD.org, hipo@design.bg
Cc:  
Subject: Re: ports/136985: lang/php5: pcre not working correctly
Date: Thu, 23 Jul 2009 11:31:48 +0300

 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!
 
>Unformatted:
