php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #39962
Patch substr_insert.patch revision 2011-08-23 15:37 UTC by datibbaw@php.net
revision 2011-08-23 14:08 UTC by datibbaw@php.net
revision 2011-08-23 14:05 UTC by datibbaw@php.net

Patch substr_insert.patch for *General Issues Bug #39962

Patch version 2011-08-23 14:08 UTC

Return to Bug #39962 | Download this patch
This patch is obsolete

Obsoleted by patches:

This patch renders other patches obsolete

Obsolete patches:

Patch Revisions: 2011-08-23 15:37 UTC | 2011-08-23 14:08 UTC | 2011-08-23 14:05 UTC

Developer: datibbaw@php.net



  +	if (start) {
  +		memcpy(result, str, start);
  +	}
  +	memcpy((result + start), insert, insert_len);
 +	if (start != str_len) {
 +	if (from != str_len) {
  +		memcpy((result + start + insert_len), (str + start), str_len - start); 
  +	}
  +	result[result_len] = '\0';
  +
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat May 21 06:03:42 2022 UTC