From:             martin dot adolfsson at movel dot se
Operating system: Debian GNU/Linux 4.0
PHP version:      5.2.5
PHP Bug Type:     PCRE related
Bug description:  preg_* UTF-8 support breaks w/ external PCRE

Description:
------------
Attempting to use external PCRE library (7.6), configured with

  --enable-static 
  --disable-shared 
  --enable-utf8 
  --enable-unicode-properties
  --disable-cpp 

in PHP 5.2.5, configured with (among other options):

--with-pcre-regex={PATH_TO_PCRE_INSTALLATION}

Results in calls to preg_match() with /u modifier triggering an error and
stating that "this version of PCRE is not compiled with PCRE_UTF8 support".

Reproduce code:
---------------
preg_match('//u', '' );

Expected result:
----------------
<empty>

Actual result:
--------------
preg_match() [<a href='function.preg-match'>function.preg-match</a>]:
Compilation failed: this version of PCRE is not compiled with PCRE_UTF8
support at offset 0 in ...

-- 
Edit bug report at http://bugs.php.net/?id=44208&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44208&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44208&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44208&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44208&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44208&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44208&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44208&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44208&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44208&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44208&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44208&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44208&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44208&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44208&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44208&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44208&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44208&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44208&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44208&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44208&r=mysqlcfg

Reply via email to