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

Conditionally define MongoDB\Driver\Monitoring\mongoc_log only for test builds

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      PHPC-2180 defines an internal MongoDB\Driver\Monitoring\mongoc_log function for internal testing. Considering only conditionally defining this function when the build is configured for testing (e.g. check a defined C constant).

      While this is relatively straightforward to do with config.m4 (e.g. alongside building with developer flags), it would require more effort for Windows builds since we currently use the same build for both testing and releases.

      Note: this came out of mongodb/mongo-php-driver#1395.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: