#46800 [Opn->Fbk]: Warning on ~[^\\pL0-9_]+~u
| From: | nlopess@php.net | Date: | Tue, 09 Dec 2008 22:03:13 +0000 |
| Subject: | #46800 [Opn->Fbk]: Warning on ~[^\\pL0-9_]+~u | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131841@lists.php.net to get a copy of this message | ||
ID: 46800
Updated by: nlopess@php.net
Reported By: svoboda at svoon dot net
-Status: Open
+Status: Feedback
Bug Type: PCRE related
Operating System: debian etch
PHP Version: 5.2.7
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
I've commited a fix. can you please check if it works for you?
(please wait ~1h30 counting from this msg to allow a new snapshot to be
generated)
Previous Comments:
------------------------------------------------------------------------
[2008-12-09 20:02:03] svoboda at svoon dot net
could be it connected?
http://bugs.gentoo.org/238127
------------------------------------------------------------------------
[2008-12-09 19:48:36] svoboda at svoon dot net
hi,
I have compiled it with following:
./configure --disable-all --disable-cgi --with-pcre-regex
--with-apxs2=/usr/bin/apxs2
--with-config-file-path=/etc/php5/apache2/php.ini
the problem still remains, but from command line it regexp works fine
(from command line it worked even with full configure command).
So the problem is connected with running through apache.
I confirmed this bug on ubuntu hardy.
ondrej
------------------------------------------------------------------------
[2008-12-08 22:31:07] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
And use this configure line:
# ./configure --disable-all --disable-cgi --with-pcre-regex
------------------------------------------------------------------------
[2008-12-08 19:04:21] svoboda at svoon dot net
Description:
------------
this code:
preg_replace('~[^\\pL0-9_]+~u', '-', $url);
results in:
Warning: preg_replace() [function.preg-replace]: Compilation failed:
unknown property name after \P or \p at offset 4 in functions.inc.php
in 5.2.6 version it works fine
ondrej
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46800&edit=1