mongodb/mongo-php-driver — pull request #35 by bjori (2012-02-02 17:10:42+00:00)
Title: Segfaults when mongod rejects incoming connections

Startup mongod with silly low --maxConns

".....",
"password" => "....",
"replicaSet" => "....",
);

for($i=0; $i<1000; $i++) {
$m = $a[] = new Mongo($conn, $opts);
$m->test->doc->batchInsert(array(array(1,2,3),array(4,5,6)), array("safe" => true));
var_dump($m);
}