[php-src] PR #23502: [SOAP] Fix WSDL cache corruption when header defines headerfaults
| From: | iliaal | Date: | Sat, 29 Aug 2026 12:17:13 +0000 |
| Subject: | [php-src] PR #23502: [SOAP] Fix WSDL cache corruption when header defines headerfaults | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38196@lists.php.net to get a copy of this message | ||
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.