#28697 [Opn->Bgs]: incorrect processing of a Hebrew charachter

From: Date: Wed, 09 Jun 2004 14:21:43 +0000
Subject: #28697 [Opn->Bgs]: incorrect processing of a Hebrew charachter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60643@lists.php.net to get a copy of this message
 ID:               28697
 Updated by:       iliaa@php.net
 Reported By:      alon at wsco dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *Languages/Translation
 Operating System: Linux RH9.0
 PHP Version:      4.3.7
 New Comment:

This looks to be a problem with the PCRE library and it's 
handling of Hebrew characters. Please contact the 
developers of PCRE about this issue. 


Previous Comments:
------------------------------------------------------------------------

[2004-06-08 14:53:57] alon at wsco dot com

Description:
------------
To the best of my knowledge this issue was reported in version 4.3.4
and has not been addressed since.
The 19th character in the Hebrew alphabet is called "Koof" (the oo is
pronounced similar to "Book").

This is a new issue from the version 4.3 and above (not sure if 4.3.2
had it or not).

I am a hosting company owner (linux box) and have lots of users who are
complaining about this problem.

One of my users gave a sample code that illustrate this problem:


<?php
setlocale (LC_ALL,"hebrew");
$long_date = strftime("%A, %d %B %Y");
echo $long_date . "<br />";
$str = "òáøéú";
   if (preg_match('/[^\w\s\-\.\@]/i',$str)) {
      print "wrong!";
   }
?>

Please have someone have a look at this at your earliest as I am
'bombarded' with "There is something wrong with your server" msgs.
This issue was checked at a previous version of PHP with no problems
and seem to work fine.

-Alon
alon@wsco.com

Reproduce code:
---------------
<?php
setlocale (LC_ALL,"hebrew");
$long_date = strftime("%A, %d %B %Y");
echo $long_date . "<br />";
$str = "òáøéú";
   if (preg_match('/[^\w\s\-\.\@]/i',$str)) {
      print "wrong!";
   }
?>


Expected result:
----------------
éåí ùìéùé, 01 éåðé 2004


Actual result:
--------------
éåí ùìéùé, 01 éåðé 2004
wrong!



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28697&edit=1


Thread (2 messages)

« previous php.bugs (#60643) next »