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

Weird error messages when connecting to non-mongodb node

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.0-alpha1
    • Affects Version/s: 0.2.0
    • Component/s: None
    • None

      php -n -c. -r '$m = new MongoDB\Driver\Manager("mongodb://127.0.0.1"); $m->executeQuery("foo.bar", new MongoDB\Driver\Query([]));'
      
      Notice: MongoDB\Driver\Manager::executeQuery(): send of 4 bytes failed with errno=111 Connection refused in Command line code on line 1
      
      Notice: MongoDB\Driver\Manager::executeQuery(): send of 4 bytes failed with errno=32 Broken pipe in Command line code on line 1
      
      Notice: MongoDB\Driver\Manager::executeQuery(): send of 4 bytes failed with errno=32 Broken pipe in Command line code on line 1
      
      Notice: MongoDB\Driver\Manager::executeQuery(): send of 4 bytes failed with errno=32 Broken pipe in Command line code on line 1
      
      Notice: MongoDB\Driver\Manager::executeQuery(): send of 4 bytes failed with errno=32 Broken pipe in Command line code on line 1
      
      Notice: MongoDB\Driver\Manager::executeQuery(): send of 11 bytes failed with errno=32 Broken pipe in Command line code on line 1
      
      Notice: MongoDB\Driver\Manager::executeQuery(): send of 4 bytes failed with errno=32 Broken pipe in Command line code on line 1
      
      Notice: MongoDB\Driver\Manager::executeQuery(): send of 4 bytes failed with errno=32 Broken pipe in Command line code on line 1
      
      Notice: MongoDB\Driver\Manager::executeQuery(): send of 19 bytes failed with errno=32 Broken pipe in Command line code on line 1
      ^C
      php -n -c. -r   7.12s user 0.48s system 100% cpu 7.594 total
      

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

              Created:
              Updated:
              Resolved: