Thrift-1903: PHP namespaces cause binary protocols to not be used
authorJake Farrell <jfarrell@apache.org>
Sat, 20 Apr 2013 01:58:33 +0000 (21:58 -0400)
committerJake Farrell <jfarrell@apache.org>
Sat, 20 Apr 2013 01:58:33 +0000 (21:58 -0400)
commitde262dc77ee06ab40859230dd57f383ac4f32c61
tree36e57376635b94d2de8d72e10e16878700550091
parent1bd9424b475685b257aec7f075dee27d4b350b03
Thrift-1903: PHP namespaces cause binary protocols to not be used
Client: php
Patch: Tyler Hobbs

Resolves the issue by importing TBinaryProtocolAccelerated and checking if $this->output_ is an instance of that instead of using a static string in TProtocol.
compiler/cpp/src/generate/t_php_generator.cc
lib/php/lib/Thrift/Protocol/TProtocol.php