Skip to content

prevent infinite recursion in to_array_debug - #1719

Open
denisichh wants to merge 3 commits into
masterfrom
dzubarev/fix-to-array-visitor
Open

denisichh wants to merge 3 commits into
masterfrom
dzubarev/fix-to-array-visitor

Conversation

@denisichh

Copy link
Copy Markdown
Contributor
  • Prevent infinite recursion and stack overflows when objects contain cyclic references
  • Move array visitors and shape-key demangling into runtime-common

@denisichh denisichh self-assigned this Nov 24, 2026
@denisichh denisichh added runtime Feature related to runtime k2 Affects compiler or runtime in K2 mode kphp Affects compiler or runtime in default mode (not K2) labels Nov 24, 2026
// Distributed under the GPL v3 License, see LICENSE.notice.txt

#include "runtime-common/stdlib/visitors/shape-key-demangle.h"
#include "runtime-light/components/kphp/state/image-state.h"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing newline

#include "runtime-common/stdlib/visitors/shape-key-demangle.h"
#include "runtime-light/components/kphp/state/image-state.h"

const ShapeKeyDemangle& ShapeKeyDemangle::get() noexcept {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs to be declared in kphp's bindings

This branch has not been deployed

No deployments
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 kphp Affects compiler or runtime in default mode (not K2) runtime Feature related to runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants