|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62011 SPL_Types SplString() support for strpos, replace , string functions in general
Submitted: 2012-05-12 13:46 UTC Modified: 2017-01-10 08:14 UTC
From: netriver+php at gmail dot com Assigned:
Status: Suspended Package: SPL_Types (PECL)
PHP Version: 5.4.3 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.
Block user comment
Status: Assign to:
Bug Type:
From: netriver+php at gmail dot com
New email:
PHP Version: OS:


 [2012-05-12 13:46 UTC] netriver+php at gmail dot com
My feature request is to have support for string functions inside a php SplString so it's normalized under this object and that it can be made easy to manipulate strings.

A few examples in PHP

$b = new SplString("A String");
$a = $b->replace("A", "The");
// $a == "The String" , $b == "A String"

$a->replace("The", "Thy");
print $a // $a == "Thy String");

print $a->substr(0, 3); // "Thy "

print $a->indexOf("T"); // 0


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-13 14:45 UTC]
-Package: PECL +Package: SPL_Types
 [2014-07-02 21:06 UTC] tobihille at gmail dot com
Just have a look at this especially ConvString, maybe it helps: ttps://
 [2017-01-10 08:14 UTC]
-Status: Open +Status: Suspended
 [2017-01-10 08:14 UTC]
Suspending this report as the extension have not had a release for almost 5 years.  Please revive this if the extension once again shows life
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 04:01:28 2024 UTC