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

Fix bson_init_static() precondition failure

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

      <?php                                                                                
      $opts = array (                                                                      
        'allowPartialResults' => false,                                                    
        'batchSize' => 101,                                                                
        'comment' => '',                                                                   
        'cursorType' => 0,                                                                 
        'limit' => 1,                                                                      
        'maxTimeMS' => 0,                                                                  
        'modifiers' =>                                                                     
        array (                                                                            
        ),                                                                                 
        'noCursorTimeout' => false,                                                        
        'oplogReplay' => false,                                                            
        'projection' =>                                                                    
        array (                                                                            
        ),                                                                                 
        'skip' => 0,                                                                       
        'sort' =>                                                                          
        array (                                                                            
        ),                                                                                 
        'cursorFlags' => 0,                                                                
      );                                                                                   
                                                                                           
      $m = new MongoDB\Driver\Manager("mongodb://localhost:27017");                        
      $q = new MongoDB\Driver\Query(array(), $opts);                                       
                                                                                           
      $m->executeQuery("dbname.collname", $q);          
      echo "I'm alive\n";
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: