Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- SOAP Bug #70875 - Segmentation fault if wsdl has no targetNamespace attribute --E..

Decoded Output download

--TEST--
SOAP Bug #70875 - Segmentation fault if wsdl has no targetNamespace attribute
--EXTENSIONS--
soap
--INI--
soap.wsdl_cache_enabled=0
--FILE--
<?php

class bug70875 extends SOAPClient
{
    public function __doRequest($request, $location, $action, $version, $one_way = 0): ?string
    {
        die("no SIGSEGV");
    }
}

$c = new bug70875(__DIR__.'/bug70875.wsdl', [
    'trace' => 1,
    'classmap' => [
        'TestService' => 'TestService',
        'TestServiceRQ' => 'TestServiceRQ',
        'RqHeader' => 'RqHeader',
    ],
]);


class TestService
{
    public $TestServiceRQ;
}

class TestServiceRQ
{
    public $RqHeader;
}

class RqHeader
{
}

$r = new TestService();
$r->TestServiceRQ = new TestServiceRQ();
$r->TestServiceRQ->RqHeader = new RqHeader();

$c->testService($r);

?>
--EXPECT--
no SIGSEGV

Did this file decode correctly?

Original Code

--TEST--
SOAP Bug #70875 - Segmentation fault if wsdl has no targetNamespace attribute
--EXTENSIONS--
soap
--INI--
soap.wsdl_cache_enabled=0
--FILE--
<?php

class bug70875 extends SOAPClient
{
    public function __doRequest($request, $location, $action, $version, $one_way = 0): ?string
    {
        die("no SIGSEGV");
    }
}

$c = new bug70875(__DIR__.'/bug70875.wsdl', [
    'trace' => 1,
    'classmap' => [
        'TestService' => 'TestService',
        'TestServiceRQ' => 'TestServiceRQ',
        'RqHeader' => 'RqHeader',
    ],
]);


class TestService
{
    public $TestServiceRQ;
}

class TestServiceRQ
{
    public $RqHeader;
}

class RqHeader
{
}

$r = new TestService();
$r->TestServiceRQ = new TestServiceRQ();
$r->TestServiceRQ->RqHeader = new RqHeader();

$c->testService($r);

?>
--EXPECT--
no SIGSEGV

Function Calls

None

Variables

None

Stats

MD5 dfbd742d5c03db1701c0ef64a71e58c6
Eval Count 0
Decode Time 85 ms