From 0af62d181c30a2758191055b32baeb5156ceef57 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Tue, 27 Feb 2007 22:11:09 +0000 Subject: [PATCH] Bogus $this->type in TApplicationException in PHP Reviewed By: php git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665027 13f79535-47bb-0310-9956-ffa450edef68 --- lib/php/src/Thrift.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/php/src/Thrift.php b/lib/php/src/Thrift.php index 8118e3bb..5fa57f03 100644 --- a/lib/php/src/Thrift.php +++ b/lib/php/src/Thrift.php @@ -97,7 +97,7 @@ class TApplicationException extends TException { $xfer += $output->writeString($this->getMessage()); $xfer += $output->writeFieldEnd(); } - if ($this->type !== null) { + if ($this->getCode()) { $xfer += $output->writeFieldBegin('type', TType::I32, 2); $xfer += $output->writeI32($this->getCode()); $xfer += $output->writeFieldEnd(); -- 2.17.1