Skip to content

ext/soap: to_zval_array() native stack overflow on cyclic encoded ref… - #22991

Open
devnexen wants to merge 2 commits into
php:PHP-8.4from
devnexen:gh22984
Open

ext/soap: to_zval_array() native stack overflow on cyclic encoded ref…#22991
devnexen wants to merge 2 commits into
php:PHP-8.4from
devnexen:gh22984

Conversation

@devnexen

@devnexen devnexen commented Aug 1, 2026

Copy link
Copy Markdown
Member

…erences.

Fix #22984

The array and apache Map decoders never registered the node being decoded, unlike to_zval_object_ex(), so a child href or enc:ref pointing back at an enclosing array recursed until the native stack was exhausted. An empty holder is now registered before the children are converted, and replaced by the completed value afterwards.

…erences.

Fix php#22984

The array and apache Map decoders never registered the node being
decoded, unlike to_zval_object_ex(), so a child href or enc:ref pointing
back at an enclosing array recursed until the native stack was exhausted.
An empty holder is now registered before the children are converted, and
replaced by the completed value afterwards.
@devnexen
devnexen marked this pull request as ready for review August 1, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant