Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2008 10:30:07 GMT
From:      Rainer Duffner <rainer@ultra-secure.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/129168: php5-pcre doesn't seem to know about --enable-unicode-properties
Message-ID:  <200811251030.mAPAU7uB033447@www.freebsd.org>
Resent-Message-ID: <200811251040.mAPAe3vR031997@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         129168
>Category:       ports
>Synopsis:       php5-pcre doesn't seem to know about --enable-unicode-properties
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 25 10:40:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Rainer Duffner
>Release:        7.0
>Organization:
>Environment:
FreeBSD blahost 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: Tue Nov  4 18:21:40 CET 2008     root@blahost:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Hi,

the following PHP-script:

<?PHP
echo "<PRE>";
$str="This is the string";
 $count = preg_match_all("/[[:print:]\pL]/u", $str, $pockets);
echo $pockets;
echo "</PRE>";
?>


provokes the following error in the httpd-error-log:


 stderr: PHP Warning:  preg_match_all() [<a href='function.preg-match-all'>function.preg-match-all</a>]: Compilation failed: unknown property name after \\P or \\p at offset 12 in /usr/local/www/data/test/p.php on line 4

This is an example from the PHP-documentation - the error manifested itself first when somebody tried to use typolight.

http://www.typolight.org/faq-leser/items/support-for-ppx-has-not-been-compiled.html

I tried to get php5-pcre to recognize these switches, but I failed and I'm not familiar enough with the PHP-port.
Trying to compile with the system-wide pcre failed, too, of course, because some symbols were missing.


I would be very thankful for any advice on this.






>How-To-Repeat:
See above
>Fix:
None know, currently.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811251030.mAPAU7uB033447>