[php-src] Issue #22161: PHP 8.5 broke SoapServer::handle()
[email protected] (langemeijer) Wed, 27 May 2026 13:34:20 +0000
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
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_