PHP Generator: Throw an exception on bad types.
authorDavid Reiss <dreiss@apache.org>
Tue, 10 Jun 2008 22:55:46 +0000 (22:55 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 10 Jun 2008 22:55:46 +0000 (22:55 +0000)
commitc0092f973d79f309c1b89ae5e55ad8094b87763a
tree3e9d66208cb0969f0d0b8e65c566f5f592adc092
parentb04df765b5c9fe1b8fb6ded0ed2750188278fe50
PHP Generator: Throw an exception on bad types.

Summary:
Previously, if you set a structure field to, say, an int when it was
supposed to be a container (array) or struct (object), the serialization
code would either produce corrupt output (container) or cause a fatal
error (struct).  Now they both throw exceptions.

Reviewed By: mcslee

Test Plan: Looked at generated code.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666365 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_php_generator.cc