From: mhaury at igc dot gulbenkian dot pt
Operating system: MacOSX
PHP version: 4.3.2
PHP Bug Type: *Regular Expressions
Bug description: PREG /^[[:alpha:]]+$/ - accentuated char problem ?
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 bug report at http://bugs.php.net/?id=24686&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24686&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24686&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24686&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24686&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24686&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24686&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24686&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24686&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24686&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24686&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24686&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24686&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24686&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24686&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24686&r=gnused