Skip to content

SoapClient can't parse WSDL file correctly #8538

Description

@TheOneThingSpecial

Description

The following code:

<?php
function testsoap()
{
    try {
        $client = new SoapClient('tmp.txt'); 
        $res = $client->__getFunctions();
        var_dump($res);
    } catch (Exception $e) {
        var_dump($e->getMessage());
    }
}

testsoap();

tmp.txt:
tmp.txt

Resulted in this output:
image

But I expected this output instead:
image

Test:
When I modify the source file ext/soap/php_sdl.c and add debugging information, as shown below:
image
I got the result as below:
image
So I think there might be a problem with this line
ctype = strrchr((char*)type->children->content,':');

PHP Version

PHP 7.3.24

Operating System

Centos 6.10

Metadata

Metadata

Assignees

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