aboutsummaryrefslogtreecommitdiffhomepage
path: root/conformance/conformance_php.php
diff options
context:
space:
mode:
authorGravatar Yilun Chong <yilunchong@google.com>2017-06-29 15:04:50 -0700
committerGravatar Yilun Chong <yilunchong@google.com>2017-06-29 15:04:50 -0700
commita7d5be6a910caabc4b26d73bc5c369dbc638c4c3 (patch)
treeec2052388041b773c2565a18eccef1fa3dbf7dec /conformance/conformance_php.php
parentfcb926825537c214ef7ce40f742aca905345f958 (diff)
change php objc nodejs csharp ruby
Diffstat (limited to 'conformance/conformance_php.php')
-rwxr-xr-xconformance/conformance_php.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/conformance/conformance_php.php b/conformance/conformance_php.php
index 848cb4c7..ca2292ad 100755
--- a/conformance/conformance_php.php
+++ b/conformance/conformance_php.php
@@ -45,14 +45,14 @@ function doTest($request)
$test_message = new \Protobuf_test_messages\Proto3\TestAllTypes();
$response = new \Conformance\ConformanceResponse();
if ($request->getPayload() == "protobuf_payload") {
- if ($request->getMessageType() == "proto3") {
+ if ($request->getMessageType() == "protobuf_test_messages.proto3.TestAllTypes") {
try {
$test_message->mergeFromString($request->getProtobufPayload());
} catch (Exception $e) {
$response->setParseError($e->getMessage());
return $response;
}
- } elseif ($request->getMessageType() == "proto2") {
+ } elseif ($request->getMessageType() == "protobuf_test_messages.proto2.TestAllTypesProto2") {
$response->setSkipped("PHP doesn't support proto2");
return $response;
} else {