From: Mark Slee Date: Tue, 27 Feb 2007 22:11:09 +0000 (+0000) Subject: Bogus $this->type in TApplicationException in PHP X-Git-Tag: 0.2.0~1445 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=0af62d181c30a2758191055b32baeb5156ceef57;p=common%2Fthrift.git 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 --- 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();