diff options
author | Stanley Cheung <stanley.cheung@gmail.com> | 2016-09-22 17:09:32 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2016-09-22 17:13:12 -0700 |
commit | 11433f78a72daf5d547547ab132de25ac79b9b0b (patch) | |
tree | d003a6cadc618aa5de5d25a9829b395c52d099fc /php/tests | |
parent | 39a2a25f05087f4ae506f1602400476a62e81a64 (diff) | |
download | protobuf-11433f78a72daf5d547547ab132de25ac79b9b0b.tar.gz protobuf-11433f78a72daf5d547547ab132de25ac79b9b0b.tar.bz2 protobuf-11433f78a72daf5d547547ab132de25ac79b9b0b.zip |
PHP: support 7.0 on PHP implementation (#2162)
* PHP: support 7.0
* Also fix in test_util.php
Diffstat (limited to 'php/tests')
-rw-r--r-- | php/tests/test_util.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/php/tests/test_util.php b/php/tests/test_util.php index decd1a78..2f6e4dd8 100644 --- a/php/tests/test_util.php +++ b/php/tests/test_util.php @@ -50,6 +50,8 @@ class TestUtil public static function setTestMessage(TestMessage $m) { + $sub = new TestMessage_Sub(); + $m->setOptionalInt32(-42); $m->setOptionalInt64(-43); $m->setOptionalUint32(42); @@ -66,7 +68,7 @@ class TestUtil $m->setOptionalString('a'); $m->setOptionalBytes('b'); $m->setOptionalEnum(TestEnum::ONE); - $m->setOptionalMessage(new TestMessage_Sub()); + $m->setOptionalMessage($sub); $m->getOptionalMessage()->SetA(33); $m->getRepeatedInt32() []= -42; |