client: php
Patch: Dave Watson
Previously the code incorrectly ignored unknown field types. After
reading the field header, if it was an unknown type it would incorrectly
assume there was no data, and start trying to read the next field
immediately.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1179907 13f79535-47bb-0310-9956-
ffa450edef68
return $result;
}
default:
- return 0;
+ throw new TProtocolException('Unknown field type: '.$type,
+ TProtocolException::INVALID_DATA);
}
}
return $result;
}
default:
- return 0;
+ throw new TProtocolException('Unknown field type: '.$type,
+ TProtocolException::INVALID_DATA);
}
}
}