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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 26 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC