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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 02:01:32 2025 UTC