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
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: 550794054 at qq dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-23 13:04 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 04:01:27 2025 UTC