|  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
 [2009-12-29 23:49 UTC] anthon dot pang at gmail dot com
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).


Add a Patch

Pull Requests

Add a Pull Request


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-2022 The PHP Group
All rights reserved.
Last updated: Fri Jan 28 06:03:41 2022 UTC