--TEST--
Bug #79536 (zend_clear_exception prevent exception's destructor to be called)
--SKIPIF--
--INI--
soap.wsdl_cache_enabled=0
--FILE--
???
";
class myFault extends SoapFault {
public function __destruct() {
}
}
function book_to_xml($book) {
throw new myFault("Server", "Conversion Fault");
}
class test{
function dotest2($str){
$book = new book;
$book->a = "foo";
$book->b = "bar";
return $book;
}
}
class book{
public $a="a";
public $b="c";
}
$options=Array(
'actor' =>'http://schemas.nothing.com',
'typemap' => array(array("type_ns" => "http://schemas.nothing.com",
"type_name" => "book",
"to_xml" => "book_to_xml"))
);
$server = new SoapServer(__DIR__."/classmap.wsdl",$options);
$server->setClass("test");
$server->handle($HTTP_RAW_POST_DATA);
echo "ok\n";
?>
--EXPECT--
SOAP-ENV:ServerConversion Fault
ok