Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-242

MONGOC_WARNING() into exceptions

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 0.4.1
    • Component/s: None
    • None

      mongoc issues MONGOC_WARNING() is some places where it decided not to break API:

      src/mongoc/mongoc-bulk-operation.c:            MONGOC_WARNING ("%s(): update only works with $ operators.",
      

      This is raised in a void function, so we cannot check the return value and must check that thing.

      But. It also does this for "noone cares" messages like:

      src/mongoc/mongoc-counters.c:   MONGOC_WARNING("Falling back to malloc for counters.");
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: