ID: 37736
User updated by: evgueni at magiaworld dot org dot ru
Reported By: evgueni at magiaworld dot org dot ru
Status: Bogus
Bug Type: PCRE related
Operating System: Windows XP
PHP Version: 5.1.4
New Comment:
Thank you for help.
I sent a letter to PCRElib developers.
Previous Comments:
------------------------------------------------------------------------
[2006-06-08 06:42:20] [EMAIL PROTECTED]
Not PHP problem.
Please report it to PCRELib developers.
Thank you.
------------------------------------------------------------------------
[2006-06-07 23:58:51] judas dot iscariote at gmail dot com
I Understand your problem, however, this is not a bug, this is a much
more complex problem, that will be addressed in PHP6 only.
------------------------------------------------------------------------
[2006-06-07 23:16:46] evgueni at magiaworld dot org dot ru
Description:
------------
Good night!
I have some troubles with letter "Yo" (it's the letter "e" with two
points higher) in PCRE function preg_match. I have used the following
code to understand, consists a variable $tmp of just letters or no. The
script shows that doesn't consists. But it isn't right.
Thank you.
Eugene Smirnov.
Reproduce code:
---------------
<?php
...
$tmp = "бобёр";
if (preg_match("/^[а-яА-Я]{0,}$/)){
echo "Good";
} else {
echo "Bad";
}
...
?>
Expected result:
----------------
I want to see the word "Good", because the word
"бобёр" consists of letter just. But i
see the word "Bad".
Actual result:
--------------
No comment.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37736&edit=1