|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch substr_insert.patch for *General Issues Bug #39962Patch version 2011-08-23 15:37 UTC Return to Bug #39962 | Download this patchThis patch renders other patches obsolete Obsolete patches:
Developer: datibbaw@php.net
+ if (start) {
+ memcpy(result, str, start);
+ }
+ memcpy((result + start), insert, insert_len);
+ if (from != str_len) {
+ if (start != str_len) {
+ memcpy((result + start + insert_len), (str + start), str_len - start);
+ }
+ result[result_len] = '\0';
+
|
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 13:00:01 2025 UTC |