[GIT-PULLS] [php-src] PR #22991: ext/soap: to_zval_array() native stack overflow on cyclic encoded ref…

[email protected] (devnexen) Sat, 1 Aug 2026 16:33:24 +0000
Newsgroups php.git-pulls
Message-ID <[email protected]>
Pull Request: https://github.com/php/php-src/pull/22991
Author: devnexen

…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.