summaryrefslogtreecommitdiff
path: root/ext/soap/tests/bug70875.phpt
blob: 86a16697ce33336752a9f4941ca6add8df952cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--TEST--
SOAP Bug #70875 - Segmentation fault if wsdl has no targetNamespace attribute
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--INI--
soap.wsdl_cache_enabled=0
--FILE--
<?php

class bug70875 extends SOAPClient
{
    public function __doRequest($request, $location, $action, $version, $one_way = 0)
    {
        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