php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50137 I do not know apache 2.2.13
Submitted: 2009-11-10 13:28 UTC Modified: 2009-11-11 12:29 UTC
From: hrompik at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.11 OS: Windows 7 build 7600
Private report: No CVE-ID: None
 [2009-11-10 13:28 UTC] hrompik at gmail dot com
Description:
------------
I know English bad, so use a translator. 
The problem is that the Russian alphabet - Cyrillic is not properly processed. 
Some letters are not included in the set [?-?] example '?' or '?'

Reproduce code:
---------------
<?php
$url = '?-?';
if (ereg("^([?-?]+)-([?-?]+)$",$url)) echo 'yes'; else echo 'no';
?>


Expected result:
----------------
yes

Actual result:
--------------
no

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-10 13:31 UTC] hrompik at gmail dot com
This makes it possible so that I do not know much English, I could not use search, so I apologize if this message was.
 [2009-11-10 16:04 UTC] rasmus@php.net
Works fine for me here on a Linux box.  Try it with preg_match instead of ereg.
 [2009-11-11 10:43 UTC] hrompik at gmail dot com
if (preg_match("/^[?-?]+$/",'????')) echo 'yes'; else echo 'no';
The same problem is not all the characters. displays no and should be yes.
To work properly account for the entire alphabet list.
For example working properly:
if (preg_match("/^[?????????????????????????????????]+$/",'????')) echo 'yes'; else echo 'no';
 [2009-11-11 12:29 UTC] jani@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 01:01:32 2025 UTC