Annotation of embedaddon/php/ext/soap/tests/bugs/bug42183.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #42183 (classmap cause crash in non-wsdl mode )
        !             3: --SKIPIF--
        !             4: <?php require_once('skipif.inc'); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: class PHPObject {
        !             8: }
        !             9: 
        !            10: $req = <<<EOF
        !            11: <?xml version="1.0" encoding="UTF-8"?>
        !            12: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ws.sit.com" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:test/></SOAP-ENV:Body></SOAP-ENV:Envelope>
        !            13: EOF;
        !            14: 
        !            15: function test() {
        !            16:        return new PHPObject();
        !            17: }
        !            18: 
        !            19: $server = new SoapServer(NULL, array('uri' => 'http://ws.sit.com', 
        !            20:        'classmap' => array('Object' => 'PHPObject')));
        !            21: $server->addFunction("test");
        !            22: ob_start();
        !            23: $server->handle($req);
        !            24: ob_end_clean();
        !            25: echo "ok\n";
        !            26: --EXPECT--
        !            27: ok

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>