[
https://issues.apache.org/jira/browse/THRIFT-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer resolved THRIFT-2632.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.9.2
{quote}
Could you move the validation test to that place?
{quote}
I did it myself.
Committed.
> PHP: add "validate" option to generate read/write validation code
> -----------------------------------------------------------------
>
> Key: THRIFT-2632
> URL: https://issues.apache.org/jira/browse/THRIFT-2632
> Project: Thrift
> Issue Type: Improvement
> Components: PHP - Compiler
> Reporter: Stig Bakken
> Assignee: Jens Geyer
> Priority: Minor
> Fix For: 0.9.2
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)