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

Don't set stream initiator when creating client fails

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.3.0
    • Affects Version/s: 0.2.0
    • Component/s: None
    • None

      <?php
      $manager = new MongoDB\Driver\Manager("foobar:123");
      ?>
      

      results in mongoc assert failure

      mongoc_client_set_stream_initiator(): precondition failed: client
      
      Fatal error: Uncaught exception 'MongoDB\Driver\RuntimeException' with message 'Failed to parse MongoDB URI' in Command line code:1
      

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

              Created:
              Updated:
              Resolved: