mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-23 16:38:08 +02:00
fbd29313a4
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.