apache/thrift — pull request #159 by stigsb (2014-07-21 08:38:40+00:00)
Title: Add php:validate option for generating read/write validator code

Currently, generated PHP code will happily read and write messages with missing required fields. This patch adds a "validate" option for PHP to generate validator methods and call them after reading and before writing objects.

If a required field is missing, a TProtocolException is thrown both for read and write.