Skip to content

PHP 8.5 broke SoapServer::handle() #22161

@langemeijer

Description

@langemeijer

Description

SoapServer::handle() is not behaving as expected in my situation. This was introduced in PHP 8.5

I had something similar to:

    $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:

    $server->handle($request->getBody()->getContents());

And now it's working again.

I'm suspecting commit f538319 by @ndossche but I'm not sure.

PHP Version

PHP 8.5.5

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions