관리-도구
편집 파일: bug0231.phpt
--TEST-- Multiple managers sharing streams: Using stream after closing manager --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_not_live(); ?> <?php skip_if_not_clean(); ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $manager = create_test_manager(); $manager2 = create_test_manager(); $listdatabases = new MongoDB\Driver\Command(array("listDatabases" => 1)); $retval = $manager->executeCommand("admin", $listdatabases); $retval = $manager2->executeCommand("admin", $listdatabases); foreach($retval as $database) { } $manager = null; $retval = $manager2->executeCommand("admin", $listdatabases); foreach($retval as $database) { } echo "All Good!\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- All Good! ===DONE===