php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13952 str_replace, ereg_replace produce no result when matching char is first
Submitted: 2001-11-06 07:41 UTC Modified: 2001-11-10 12:04 UTC
From: o dot zellmann at eu dot modine dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.0.6 OS: Win 2000 5.00.2195
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: o dot zellmann at eu dot modine dot com
New email:
PHP Version: OS:

 

 [2001-11-06 07:41 UTC] o dot zellmann at eu dot modine dot com
<?php
$str="?++";
$str=str_replace("?","+",$str);
echo $str;
?>

output in browser:

?++

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-10 12:04 UTC] sander@php.net
Works fine for me on Win2K using PHP-4.0.6. I can't imagine this is a bug.
Please note that ? and + are considered as special characters by ereg_replace. See www.php.net/ereg_replace for more info.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC