[php-src] PR #25661: ext/soap: Fix NULL dereference on empty Body with matching SOAPAction

From: Date: Sun, 22 Nov 2026 22:22:17 +0000
Subject: [php-src] PR #25661: ext/soap: Fix NULL dereference on empty Body with matching SOAPAction
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40913@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25661 Author: jorgsowa Since #15970 (63e0b9ccbfe, fix for #49169), deserialize_function_call() can resolve the function from the SOAPAction header even when the request Body has no function element. The "Body without function call" fault is then skipped, and func (still NULL) is dereferenced via func->children. Any SoapServer whose WSDL has an RPC-style operation with a soapAction can be crashed by an unauthenticated request with an empty Body and the matching SOAPAction header. The fix skips descending into the method element when there is none. Operations with parameters get the existing "Missing parameter" fault. Operations without parameters are called. PHP 8.4 is not affected.

« previous php.git-pulls (#40913) next »