php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34753 wrong output from mb_split
Submitted: 2005-10-06 11:33 UTC Modified: 2005-10-14 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: struchkov at gmail dot com Assigned:
Status: No Feedback Package: mbstring related
PHP Version: 5.0.5 OS: RedHat FC4
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-10-06 11:33 UTC] struchkov at gmail dot com
Description:
------------
I work with multibite string such as russian articles in utf-encoding. I use mb_split in my program to split string ro words

function splitString($string)
{
    $tmp=mb_split('[[:space:][:punct:]><]',$string);
    foreach($tmp as $k=>$v)
       if (empty($v)) unset($tmp[$k]);
    return $tmp;
}

In my small test server (1 cpu AMD Sempron(tm) 2800+, php-4.3.10, Suse 9.3, kernel 2.6.11.4-21.9-default) I'm having right results.
But in my producting server (2 cpu Intel(R) Xeon(TM) CPU 3.00GHz with HT, php-5.0.4, RedHat FC4, kernel 2.6.13-1.1526_FC4smp) I'm having strange split, some symbols are converted into '?', some words split in middle of word....
May be problem in 64-bit version of processor


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-06 14:54 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-10-14 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 08:01:28 2024 UTC