Files
mongo-php-driver/tests
Jeremy Mikola fbd29313a4 PHPC-615: Return after throwing for bson_reader_read() error
This adds additional error tests for toJSON(), which demonstrate the problem when both exceptions might have been thrown.

Additionally, this ensures that the bson_reader_t is freed before returning. Previously, the code relied on the free after the second exception was thrown.
2016-03-04 11:18:17 -05:00
..