php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37736 Trouble with letter "Yo" in Russian language
Submitted: 2006-06-07 23:16 UTC Modified: 2006-06-08 11:08 UTC
From: evgueni at magiaworld dot org dot ru Assigned:
Status: Not a bug Package: PCRE related
PHP Version: 5.1.4 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: evgueni at magiaworld dot org dot ru
New email:
PHP Version: OS:

 

 [2006-06-07 23:16 UTC] 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 = "&#1073;&#1086;&#1073;&#1105;&#1088;";
    if (preg_match("/^[&#1072;-&#1103;&#1040;-&#1071;]{0,}$/)){
        echo "Good";
    } else {
        echo "Bad";
    }
    
    ...

?>


Expected result:
----------------
I want to see the word "Good", because the word "&#1073;&#1086;&#1073;&#1105;&#1088;" consists of letter just. But i see the word "Bad".


Actual result:
--------------
No comment.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-07 23:58 UTC] 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-08 06:42 UTC] tony2001@php.net
Not PHP problem.
Please report it to PCRELib developers.
Thank you.
 [2006-06-08 11:08 UTC] evgueni at magiaworld dot org dot ru
Thank you for help.
I sent a letter to PCRElib developers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 08:01:29 2024 UTC