如何确保PHP使用TBinaryProtocolAccelerated


How can I make sure PHP is using TBinaryProtocolAccelerated

如何确保PHP使用TBinaryProtocolAccelerated而不是TBinaryProtocol作为协议?

我在Ubuntu服务器中使用PHP5。

TBinaryProtocolAccelerated和TBinaryProtocol是Thrift特有的,而不是PHP本身。

看看https://wiki.fourkitchens.com/display/PF/Using+Cassandra+与+PHP。您需要使用TBinaryProtocolAccelerated类,而不是TBinaryProtocol。

希望这能有所帮助。