#50137 [Opn->Fbk]: I do not know apache 2.2.13
| From: | rasmus@php.net | Date: | Tue, 10 Nov 2009 16:04:19 +0000 |
| Subject: | #50137 [Opn->Fbk]: I do not know apache 2.2.13 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144417@lists.php.net to get a copy of this message | ||
ID: 50137
Updated by: rasmus@php.net
Reported By: hrompik at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Windows 7 build 7600
PHP Version: 5.2.11
New Comment:
Works fine for me here on a Linux box. Try it with preg_match instead
of ereg.
Previous Comments:
------------------------------------------------------------------------
[2009-11-10 13:31:39] 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 13:28:11] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50137&edit=1