{"action":"created","issue":{"url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/52","labels_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/52/comments","events_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/52/events","html_url":"https://github.com/mongodb/mongo-php-library/issues/52","id":118773360,"number":52,"title":"$collection->find(); bson error, new Query() fails","user":{"login":"MarkisLt","id":13850196,"avatar_url":"https://avatars.githubusercontent.com/u/13850196?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkisLt","html_url":"https://github.com/MarkisLt","followers_url":"https://api.github.com/users/MarkisLt/followers","following_url":"https://api.github.com/users/MarkisLt/following{/other_user}","gists_url":"https://api.github.com/users/MarkisLt/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkisLt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkisLt/subscriptions","organizations_url":"https://api.github.com/users/MarkisLt/orgs","repos_url":"https://api.github.com/users/MarkisLt/repos","events_url":"https://api.github.com/users/MarkisLt/events{/privacy}","received_events_url":"https://api.github.com/users/MarkisLt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T06:45:51Z","updated_at":"2015-11-26T06:16:53Z","closed_at":null,"body":"Collection.php\r\nLine: 1139: $query = new Query($filter, $options); silently fails.\r\n\r\nFor now just to get working: i replaced this line with: $query = new Query($filter);\r\n\r\nI'll try to find a write way to fix this and will update the information."},"comment":{"url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/comments/159816067","html_url":"https://github.com/mongodb/mongo-php-library/issues/52#issuecomment-159816067","issue_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/52","id":159816067,"user":{"login":"MarkisLt","id":13850196,"avatar_url":"https://avatars.githubusercontent.com/u/13850196?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkisLt","html_url":"https://github.com/MarkisLt","followers_url":"https://api.github.com/users/MarkisLt/followers","following_url":"https://api.github.com/users/MarkisLt/following{/other_user}","gists_url":"https://api.github.com/users/MarkisLt/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkisLt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkisLt/subscriptions","organizations_url":"https://api.github.com/users/MarkisLt/orgs","repos_url":"https://api.github.com/users/MarkisLt/repos","events_url":"https://api.github.com/users/MarkisLt/events{/privacy}","received_events_url":"https://api.github.com/users/MarkisLt/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T06:16:53Z","updated_at":"2015-11-26T06:16:53Z","body":"Code example:\r\n<?php\r\n\tini_set(\"display_errors\",1);\r\n\trequire_once 'vendor/autoload.php'; // include Composer goodies\r\n\t$manager = new MongoDB\\Driver\\Manager(\"mongodb://localhost:27017\");\r\n\t$collection = new MongoDB\\Collection($manager, \"my_db.my_table\");\r\n\t//$result = $collection->insertOne( [ 'name' => 'Hinterland', 'brewery' => 'BrewDog' ] );\r\n\t$cursor = $collection->find([ 'name' => 'Hinterland']); \r\n\r\n        echo \"Searching for citizen => Iceland, verify Hayley is now Icelandic\\n\";\r\n        foreach($cursor as $document) {\r\n            var_dump($document);\r\n        }\r\n?>\r\n/var/tmp/mongodb/src/libbson/src/bson/bson.c:1825 bson_init_static(): precondition failed: data\r\nAborted\r\n"}}