mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-01 05:42:09 +02:00
Clients will be hashed by Manager constructor arguments. Since they must persist between requests, the Manager destructor will no longer free the client and we'll need to start using persistent memory allocation for libbson and libmongoc.
26 lines
686 B
PHP
26 lines
686 B
PHP
--TEST--
|
|
MongoDB\Driver\Manager: mongodb.debug=stderr
|
|
--SKIPIF--
|
|
<?php if (defined("HHVM_VERSION_ID")) exit("skip HHVM uses HHVM's logging functionality"); ?>
|
|
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
|
|
--INI--
|
|
mongodb.debug=stderr
|
|
--FILE--
|
|
<?php
|
|
require_once __DIR__ . "/../utils/basic.inc";
|
|
|
|
$manager = new MongoDB\Driver\Manager(STANDALONE);
|
|
$bulk = new MongoDB\Driver\BulkWrite();
|
|
$bulk->insert(array('_id' => 1, 'x' => 1));
|
|
$result = $manager->executeBulkWrite(NS, $bulk);
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
%a
|
|
[%s] PHONGO: DEBUG > Creating Manager, phongo-1.%d.%d%S[%s] - mongoc-1.%s(%s), libbson-1.%s(%s), php-%s
|
|
%a
|
|
===DONE===
|
|
%a
|