Skip to content

Instantly share code, notes, and snippets.

@makuchaku
Created May 22, 2012 11:05
Show Gist options
  • Save makuchaku/2768373 to your computer and use it in GitHub Desktop.
Save makuchaku/2768373 to your computer and use it in GitHub Desktop.
Test for open/close connections
<?PHP
require_once('../site_config.php'); // include the required classes to make MongoBase class work
class MongoFoo extends Mongo_ModelBase {
}
for($i=0; $i<100; $i++)
{
$mFoo = new MongoFoo();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment