[GIT-PULLS] [php-src] PR #23502: [SOAP] Fix WSDL cache corruption when header defines headerfaults

[email protected] (iliaal)
Newsgroups php.git-pulls
Message-ID <[email protected]>
Pull Request: https://github.com/php/php-src/pull/23502
Author: iliaal

sdl_serialize_soap_body() counted j headerfaults per header but serialized
the body->headers hash table instead of tmp->headerfaults, writing N header
records where the deserializer expects j fault records. Any soap:header with
soap:headerfault children misaligns the WSDL cache stream; loading the cached
SDL segfaults. Reproduced with two headers, one headerfault each, on a second
cache-hitting SoapClient construction. The inner loop now iterates
tmp->headerfaults. No other loop in php_sdl.c mismatches.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.