--TEST-- PHPC-720: Do not persist SSL streams to avoid SSL reinitialization errors --SKIPIF-- --FILE-- true, 'ca_file' => SSL_DIR . '/ca.pem', ]; $manager = create_test_manager(URI, [], $driverOptions); $cursor = $manager->executeCommand(DATABASE_NAME, new MongoDB\Driver\Command(['ping' => 1])); printf("ping: %d\n", $cursor->toArray()[0]->ok); unset($manager, $cursor); $manager = create_test_manager(URI, [], $driverOptions); $cursor = $manager->executeCommand(DATABASE_NAME, new MongoDB\Driver\Command(['ping' => 1])); printf("ping: %d\n", $cursor->toArray()[0]->ok); ?> ===DONE=== --EXPECTF-- Deprecated: MongoDB\Driver\Manager::__construct(): The "allow_invalid_hostname" driver option is deprecated. Please use the "tlsAllowInvalidHostnames" URI option instead.%s Deprecated: MongoDB\Driver\Manager::__construct(): The "ca_file" driver option is deprecated. Please use the "tlsCAFile" URI option instead.%s ping: 1 ping: 1 ===DONE===