Updated RpcLiteralResponseMessageBinder to prevent infinite recursion

This commit is contained in:
Francis Besset 2011-09-08 20:44:06 +02:00
parent ade1584448
commit 4850f782d5

View File

@ -65,6 +65,8 @@ class RpcLiteralResponseMessageBinder implements MessageBinderInterface
return $this->messageRefs[$hash];
}
$this->messageRefs[$hash] = $message;
$class = $phpType;
if ($class[0] == '\\') {
$class = substr($class, 1);
@ -93,6 +95,6 @@ class RpcLiteralResponseMessageBinder implements MessageBinderInterface
}
}
return $this->messageRefs[$hash] = $message;
return $message;
}
}