[CDRIVER-1532] Return false when raising MONGOC_ERROR Created: 08/Sep/16  Updated: 19/Oct/16  Resolved: 08/Sep/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.4.0
Fix Version/s: 1.5.0

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There are some cases where we raise MONGOC_ERROR, without actually returning from the function, resulting in incorrect return values and probably incorrect behavior and maybe crashes.

See https://github.com/mongodb/mongo-php-driver/pull/376#discussion_r78054370 for discussion



 Comments   
Comment by Githook User [ 08/Sep/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1532 Return false when raising MONGOC_ERROR
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/74ead47deb554e3e161e38a6e8d2607659bb8494

Generated at Wed Feb 07 21:12:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.