php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7667 substr_replace fails to append to end of a string
Submitted: 2000-11-06 20:27 UTC Modified: 2000-11-06 20:42 UTC
From: ian at clientside dot co dot uk Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.1 OS: Linux
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: ian at clientside dot co dot uk
New email:
PHP Version: OS:

 

 [2000-11-06 20:27 UTC] ian at clientside dot co dot uk
The script below outputs 'ABC' (does nothing). But it should output 'ABCDE'. (The behaviour is identical with or without the optional length argument.)

<? echo substr_replace('ABC', 'DE', 3, 0); ?>

I would appreciate it if you could let me know when you fix this.

Thanks,

Ian

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-06 20:42 UTC] andrei@php.net
Fixed in CVS - thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC