php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #69513 "strrev" cannot support non-English string
Submitted: 2015-04-23 13:02 UTC Modified: 2015-04-23 13:04 UTC
From: 550794054 at qq dot com Assigned:
Status: Duplicate Package: PHP Language Specification
PHP Version: 5.6.8 OS: windows
Private report: No CVE-ID: None
 [2015-04-23 13:02 UTC] 550794054 at qq dot com
Description:
------------
---
From manual page: http://www.php.net/function.strrev
---
I find the instruction "strrev" cannot support non-English string,if want to reverse like chinese string ,Janpanese string,or Russian string,"strrev" will display gibberish.even add Prefix "mb_" also not support.

Test script:
---------------
<?php
$str="我的名字叫小明”;
$str1=strrev($str);
echo $str1;
?>

Expected result:
----------------
maybe it's the problem belongs to C.but I also want to PHP group can fix the problem. Thank you! 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-23 13:04 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Jan 24 18:01:24 2020 UTC