Annotation of embedaddon/php/ext/soap/tests/bugs/bug29795.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #29795 (SegFault with Soap and Amazon's Web Services)
! 3: --SKIPIF--
! 4: <?php require_once('skipif.inc'); ?>
! 5: --INI--
! 6: soap.wsdl_cache_enabled=1
! 7: --FILE--
! 8: <?php
! 9: class LocalSoapClient extends SoapClient {
! 10:
! 11: function __construct($wsdl, $options) {
! 12: parent::__construct($wsdl, $options);
! 13: }
! 14:
! 15: function __doRequest($request, $location, $action, $version, $one_way = 0) {
! 16: return <<<EOF
! 17: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
! 18: xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
! 19: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
! 20: xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><Price><Amount>3995</Amount><CurrencyCode>USD</CurrencyCode></Price></SOAP-ENV:Body></SOAP-ENV:Envelope>
! 21: EOF;
! 22: }
! 23:
! 24: }
! 25:
! 26: $client = new LocalSoapClient(dirname(__FILE__)."/bug29795.wsdl",array("trace"=>1));
! 27: $ar=$client->GetPrice();
! 28: echo "o";
! 29: $client = new LocalSoapClient(dirname(__FILE__)."/bug29795.wsdl",array("trace"=>1));
! 30: $ar=$client->GetPrice();
! 31: echo "k\n";
! 32: ?>
! 33: --EXPECT--
! 34: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>