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
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:
31 - 24 = ?
Subscribe to this entry?

 
 [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 Apr 19 16:01:27 2024 UTC