Permalink
Browse files

Uses the PCRE bundled library

  * Uses the PCRE bundled library. Closes #6
  • Loading branch information...
1 parent 252f00d commit 9a5999608ee6b4c62e1ced62c0ecb51098748cab @gplessis committed Mar 12, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 debian/changelog
  2. +1 −1 debian/rules
View
@@ -1,8 +1,9 @@
php5 (5.4.0-1~dotdeb.1) stable; urgency=low
* Reintroduce the 019-z_off_t_as_long patch. Closes #5
+ * Uses the PCRE bundled library. Closes #6
- -- Guillaume Plessis <gui@dotdeb.org> Mon, 5 Mar 2012 10:22:42 +0100
+ -- Guillaume Plessis <gui@dotdeb.org> Mon, 12 Mar 2012 13:29:42 +0100
php5 (5.4.0-1~dotdeb.0) stable; urgency=low
View
@@ -135,7 +135,7 @@ COMMON_CONFIG=--build=$(DEB_BUILD_GNU_TYPE) \
--with-gettext \
--enable-mbstring \
--with-onig=/usr \
- --with-pcre-regex=/usr \
+ --with-pcre-regex \
--enable-shmop \
--enable-sockets \
--enable-wddx \

3 comments on commit 9a59996

I've just installed PHP 5.4.7. PCRE UTF8 support appears to be absent. When I type pcretest -C I get "command not found". Any idea where I'm going wrong?

Owner

gplessis replied Sep 29, 2012

PHP is installed by default with its bundled PCRE support. It is also not linked against your system's libpcre.

  • if your want to test PHP's pcre support, display a phpinfo() and use the appropriate PHP functions
  • if you want to test your system's libpcre, install the libpcre3 package and launch pcretest
    Both are independent.

I just tested :

# php -v
PHP 5.4.7-1~dotdeb.0 (cli) (built: Sep 15 2012 09:53:20) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

Code :

<?
if (@preg_match('/\p{L}/u', 'a') == 1) {
    echo "PCRE unicode support is turned on.\n";
} else {
    echo "PCRE unicode support is turned off.\n";
}
?> 

Result :

PCRE unicode support is turned on.
Please sign in to comment.