--TEST--
Bug #37013 (server hangs when returning circular object references)
--SKIPIF--
--INI--
soap.wsdl_cache_enabled=0
--FILE--
REQUEST;
class ThingWithParent
{
var $parent;
var $id;
var $children;
function __construct( $id, $parent ) {
$this->id = $id;
$this->parent = $parent;
}
}
class MultiRefTest {
public function getThingWithParent() {
$p = new ThingWithParent( 1, null );
$p2 = new ThingWithParent( 2, $p );
$p3 = new ThingWithParent( 3, $p );
$p->children = array( $p2, $p3 );
return $p2;
}
}
$server = new SoapServer(__DIR__."/bug37013.wsdl");
$server->setClass( "MultiRefTest");
$server->handle( $request );
?>
--EXPECT--
1- 3
2