php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50609 Feature Request: mbstring - add mb_substr_replace
Submitted: 2009-12-29 23:49 UTC Modified: 2010-01-17 18:41 UTC
From: anthon dot pang at gmail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.12 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anthon dot pang at gmail dot com
New email:
PHP Version: OS:

 

 [2009-12-29 23:49 UTC] anthon dot pang at gmail dot com
Description:
------------
For consistency, there should be a multibyte-aware version of substr_replace.  At present, it's inconsistent (and can lead to incorrect results) if strlen and strpos functions are overloaded, and have those return values passed to substr_replace (which isn't overloaded).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-17 18:41 UTC] anthon dot pang at gmail dot com
mbstring.func_overload is evil.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC