Skip to content

change json_decode so that it accepts string_view instead of KPHP string#1398

Merged
apolyakov merged 2 commits into
masterfrom
apolyakov/make-json-decode-accept-string-view-insteadof-string
Sep 2, 2025
Merged

change json_decode so that it accepts string_view instead of KPHP string#1398
apolyakov merged 2 commits into
masterfrom
apolyakov/make-json-decode-accept-string-view-insteadof-string

Conversation

@apolyakov
Copy link
Copy Markdown
Contributor

Current json_decode forces us to create unnecessary KPHP strings from time to time

@apolyakov apolyakov added this to the next milestone Aug 29, 2025
@apolyakov apolyakov self-assigned this Aug 29, 2025
@apolyakov apolyakov added runtime Feature related to runtime k2 Affects compiler or runtime in K2 mode labels Aug 29, 2025
@apolyakov apolyakov force-pushed the apolyakov/make-json-decode-accept-string-view-insteadof-string branch from 792ec2b to 0fef56b Compare August 29, 2025 11:30
Comment thread runtime-common/stdlib/serialization/json-functions.cpp
Comment thread server/php-engine.cpp Outdated
Comment thread runtime-common/stdlib/serialization/from-json-processor.h Outdated
@apolyakov apolyakov merged commit 46f6777 into master Sep 2, 2025
8 of 10 checks passed
@apolyakov apolyakov deleted the apolyakov/make-json-decode-accept-string-view-insteadof-string branch September 2, 2025 11:26
Danil42Russia added a commit that referenced this pull request Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

k2 Affects compiler or runtime in K2 mode runtime Feature related to runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants