[thrift] PHP thrift_protocol extension, revision 2.0
authordweatherford <dev-null@apache.org>
Tue, 4 Mar 2008 01:08:23 +0000 (01:08 +0000)
committerdweatherford <dev-null@apache.org>
Tue, 4 Mar 2008 01:08:23 +0000 (01:08 +0000)
commitcf997a45c6a79ff662679003fa0904c9a73454de
treedc1e849874bebf959d4f91ed2c91a9de3a312a3a
parent9f646157f0c22f021343df778df5ed3fcd8da933
[thrift] PHP thrift_protocol extension, revision 2.0

Summary:
  All PHP serialization and deserialization can now happen in extension-land,
  which should be much faster. This includes reading message headers and all
  complex types (structs, exceptions, whatever).

  The compiler has been updated to always emit the $_TSPEC static array for
  generated PHP code, since the new extension depends on it.

  As before, the PHP code gates enabling the accelerated serialization on
  the protocol being an instance of TBinaryProtocolAcclerated and the function
  for the [de]serialization operation existing.

  The function names have changed since the last version of the extension,
  so old and new generated code can coexist, and new generated code can run on
  a server with the old extension (but it will not use accelerated serialization).

Reviewed by: hzhao
Test Plan: Generated a couple of endpoints and called their services through the
  new extension. Both use a variety of nested complex types. Built and ran the
  extension in php-5.2.3 in debug mode, killed the reported memory leaks.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665548 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_php_generator.cc
lib/php/src/ext/thrift_protocol/config.m4 [moved from lib/php/src/ext/thrift_protocol/tags/1.0.0/config.m4 with 100% similarity]
lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp [new file with mode: 0644]
lib/php/src/ext/thrift_protocol/php_thrift_protocol.h [new file with mode: 0644]
lib/php/src/ext/thrift_protocol/tags/1.0.0/php_thrift_protocol.cpp [deleted file]
lib/php/src/ext/thrift_protocol/tags/1.0.0/php_thrift_protocol.h [deleted file]
lib/php/src/ext/thrift_protocol/trunk/config.m4 [deleted file]
lib/php/src/ext/thrift_protocol/trunk/php_thrift_protocol.cpp [deleted file]
lib/php/src/ext/thrift_protocol/trunk/php_thrift_protocol.h [deleted file]
lib/php/src/protocol/TBinaryProtocol.php