From 700dfd9b2314adc7cc37c72d0e16f6823946dfb8 Mon Sep 17 00:00:00 2001
From: Stanley Cheung <stanleycheung@google.com>
Date: Wed, 13 May 2015 13:40:28 -0700
Subject: [PATCH] php test math proto: add default value

---
 src/php/tests/generated_code/math.proto | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/php/tests/generated_code/math.proto b/src/php/tests/generated_code/math.proto
index e34ad5e967..1de7d0b8de 100644
--- a/src/php/tests/generated_code/math.proto
+++ b/src/php/tests/generated_code/math.proto
@@ -28,30 +28,30 @@
 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-syntax = "proto3";
+syntax = "proto2";
 
 package math;
 
 message DivArgs {
-  optional int64 dividend = 1;
-  optional int64 divisor = 2;
+  optional int64 dividend = 1 [default = 0];
+  optional int64 divisor = 2 [default = 0];
 }
 
 message DivReply {
-  optional int64 quotient = 1;
-  optional int64 remainder = 2;
+  optional int64 quotient = 1 [default = 0];
+  optional int64 remainder = 2 [default = 0];
 }
 
 message FibArgs {
-  optional int64 limit = 1;
+  optional int64 limit = 1 [default = 0];
 }
 
 message Num {
-  optional int64 num = 1;
+  optional int64 num = 1 [default = 0];
 }
 
 message FibReply {
-  optional int64 count = 1;
+  optional int64 count = 1 [default = 0];
 }
 
 service Math {
-- 
GitLab