Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.20.0
-
None
-
None
Description
Methods \Thrift\Protocol\TJSONProtocol::writeJSONDouble and \Thrift\Protocol\TSimpleJSONProtocol::writeJSONDouble uses for value encoding function
json_encode which give an error "Inf and NaN cannot be JSON encoded". Because json_encode does not throw exception code works. This error can be seen by function json_last_error_msg or if flag THROW_ERROR_ON_EXCEPTION will be provided to json_encode
Founded during writing tests for php library
https://github.com/apache/thrift/pull/2951/files#r1536763203
Attachments
Issue Links
- is related to
-
THRIFT-5757 Unit tests for php lib
- Reopened