How do i make certain PHP is applying TBinaryProtocolAccelerated and never TBinaryProtocol because the protocol?

I'm using PHP5 in Ubuntu Server.