Bug #9919 Updated: problem with umlauts, the modifier "i" and \b
| From: | sniper@php.net | Date: | Sun, 21 Oct 2001 03:45:37 +0000 |
| Subject: | Bug #9919 Updated: problem with umlauts, the modifier "i" and \b | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68550@lists.php.net to get a copy of this message | ||
ID: 9919
Updated by: sniper
Reported By: CK1@wwwtech.de
Old Status: Open
Status: Closed
Old Bug Type: *Regular Expressions
Bug Type: PCRE related
Operating System: SuSE Linux 6.4, Kernel 2.2.14
PHP Version: 4.0 Latest CVS (22/03/2001)
New Comment:
Can not reproduce with PHP 4.1.0RC1
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-03-22 08:05:09] CK1@wwwtech.de
Hi,
I think there's a problem with the modifier "i" in php4.0.4 up to the latest CVS, try
the following code snip:
$x = "TEST ÜBER TEST";
if(preg_match("!\bÜBER\b!",$x))
echo "matched";
else
echo "unmatched";
It returns false (== unmatched) even if I change "!\bÜBER\b!i" to
"!\büber\b!i" , but in fact it has to return true (== matched).
I tested this bug down to 4.0.4.
When I tested 4.0.3, the string matched.
My os is SuSE Linux 6.4 with Kernel 2.2.14, my configure-string is
./configure \
--disable-debug \
--with-mysql \
--with-apxs=/usr/sbin/apxs \
--enable-force-cgi-redirect \
--enable-discard-path \
--with-config-file-path=/etc/httpd \
--enable-ftp \
--with-gd=/usr/local \
--with-ttf \
--with-pdflib=/usr/local \
--with-zlib=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-zlib-dir=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-tiff-dir=/usr/local \
--enable-track-vars \
--enable-trans-sid
mfg
CK
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=9919&edit=1