mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-28 19:13:15 +02:00
5e2f7b5461
* Replace client pointers on object structs with Manager references * Request-scoped Manager registry for APM events * Ensure Manager is registered regardless of persistent client * Reset request-scoped clients when forking * Test for freeing Manager during RSHUTDOWN via subscriber reference Co-authored-by: Andreas Braun <git@alcaeus.org>
21 lines
424 B
PHP
21 lines
424 B
PHP
--TEST--
|
|
MongoDB\Driver\Manager::__construct() does not canonicalise options
|
|
--FILE--
|
|
<?php
|
|
|
|
ini_set('mongodb.debug', 'stderr');
|
|
new MongoDB\Driver\Manager();
|
|
new MongoDB\Driver\Manager('mongodb://localhost:27017/');
|
|
ini_set('mongodb.debug', '');
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
%A
|
|
[%s] PHONGO: DEBUG > Created client with hash: %s
|
|
%A
|
|
[%s] PHONGO: DEBUG > Created client with hash: %s
|
|
%A
|
|
===DONE===
|