[ 
https://issues.apache.org/jira/browse/THRIFT-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14197501#comment-14197501
 ] 

Hudson commented on THRIFT-2632:
--------------------------------

SUCCESS: Integrated in Thrift #1331 (See 
[https://builds.apache.org/job/Thrift/1331/])
THRIFT-2632 add "validate" option to generate read/write validation code 
(jensg: rev 577f407df96ffe15177b5435ba99db56ae0129d8)
* lib/php/test/TestValidators.thrift
* lib/php/test/Makefile.am
* lib/php/test/Test/Thrift/TestValidators.php
* compiler/cpp/src/generate/t_php_generator.cc


> 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.3.4#6332)

Reply via email to