php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28697 incorrect processing of a Hebrew charachter
Submitted: 2004-06-08 14:53 UTC Modified: 2004-06-09 16:21 UTC
Votes:11
Avg. Score:4.3 ± 1.2
Reproduced:11 of 11 (100.0%)
Same Version:11 (100.0%)
Same OS:11 (100.0%)
From: alon at wsco dot com Assigned:
Status: Not a bug Package: *Languages/Translation
PHP Version: 4.3.7 OS: Linux RH9.0
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: alon at wsco dot com
New email:
PHP Version: OS:

 

 [2004-06-08 14:53 UTC] 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!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-09 16:21 UTC] iliaa@php.net
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. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC