Skip to content

PHP 8.5 Soap server requires the raw input to be passed to $server->handle #22285

@jahyvari

Description

@jahyvari

Description

The following code:

<?php
$server->handle();

Is working with PHP 8.4.

But with PHP 8.5 I had to change it to:

<?php
$server->handle(file_get_contents("php://input"));

Without it, the server is not handling the incoming requests properly. It seems to pick just the first method from the WSDL.

Could it be some kind of rewind issue, since the code is reading the php input before the handle function is called, to do custom Schema validation.

PHP Version

PHP 8.5.7 (cli) (built: Jun  2 2026 20:59:56) (NTS gcc x86_64)
Copyright (c) The PHP Group
Built by Remi's RPM repository <https://rpms.remirepo.net/> #StandWithUkraine
Zend Engine v4.5.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.5.7, Copyright (c), by Zend Technologies

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