ports/136985: php pcre not working correctly

G. Georgiev hipo at design.bg
Wed Jul 22 10:30:06 UTC 2009


>Number:         136985
>Category:       ports
>Synopsis:       php pcre not working correctly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 22 10:30:05 UTC 2009
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list