GitHub user stigsb opened a pull request:
https://github.com/apache/thrift/pull/159
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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/stigsb/thrift THRIFT-2632
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/159.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #159
----
commit 7c50f8da40d2feca3fcc069c3e6f5512a01f74d4
Author: Stig Bakken <[email protected]>
Date: 2014-06-24T21:31:05Z
Add php:validate option for generating read/write validator code
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---