php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24686 PREG /^[[:alpha:]]+$/ - accentuated char problem ?
Submitted: 2003-07-16 17:08 UTC Modified: 2003-07-16 21:06 UTC
From: mhaury at igc dot gulbenkian dot pt Assigned:
Status: Closed Package: *Regular Expressions
PHP Version: 4.3.2 OS: MacOSX
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 + 2 = ?
Subscribe to this entry?

 
 [2003-07-16 17:08 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-16 21:06 UTC] sniper@php.net
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.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 07:01:29 2024 UTC