[php-src] Issue #22161: PHP 8.5 broke SoapServer::handle()

From: Date: Wed, 27 May 2026 13:34:20 +0000
Subject: [php-src] Issue #22161: PHP 8.5 broke SoapServer::handle()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-252136@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/22161 Author: langemeijer ### Description SoapServer::handle() is not behaving as expected in my situation. This was introduced in PHP 8.5 I had something similar to: ```php $server = new SoapServer($myWsdlFile); $server->setClass($myClassName); $server->handle(); ``` As documented $server->handle() without parameter should get body contents, but that seems to have broken. I changed my code to: ```php $server->handle($request->getBody()->getContents()); ``` And now it's working again. I'm suspecting commit f538319263e75c2b10a85f3b5a7b8bd204682c41 by @ndossche but I'm not sure. ### PHP Version ```plain PHP 8.5.5 ``` ### Operating System _No response_

« previous php.bugs (#252136) next »