#24686 [Opn->Csd]: PREG /^[[:alpha:]]+$/ - accentuated char problem ?
| From: | sniper@php.net | Date: | Thu, 17 Jul 2003 02:06:17 +0000 |
| Subject: | #24686 [Opn->Csd]: PREG /^[[:alpha:]]+$/ - accentuated char problem ? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44167@lists.php.net to get a copy of this message | ||
ID: 24686
Updated by: sniper@php.net
Reported By: mhaury at igc dot gulbenkian dot pt
-Status: Open
+Status: Closed
Bug Type: *Regular Expressions
Operating System: MacOSX
PHP Version: 4.3.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Seems to be fixed already.
Previous Comments:
------------------------------------------------------------------------
[2003-07-16 17:08:47] mhaury at igc dot gulbenkian dot pt
Description:
------------
The following code worked on 4.3.1 but does not work on 4.3.2 on Mac
OSX 10.2.6. with Apache 2.0.47.
preg_match() does not allow accentuated characters to be matched on the
above configuration.
Matthias
Reproduce code:
---------------
<?php
$x = "voilà";
if(preg_match("/^[[:alpha:]]+$/",$x))
echo "matched";
else
echo "unmatched";
?>
Expected result:
----------------
matched
Actual result:
--------------
unmatched
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24686&edit=1