Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
opt
/
php-7.0.33-201812191121
/
share
/
test
/
mongodb
/
tests
/
utils
/
//proc/thread-self/root/opt/php-7.0.33-201812191121/share/test/mongodb/tests/utils/basic.inc
<?php require __DIR__ . "/" . "tools.php"; if (($FILENAME = getenv("PHONGO_SERVERS")) === false) { $FILENAME = sys_get_temp_dir() . "/PHONGO-SERVERS.json"; } $json = file_get_contents($FILENAME); $config = json_decode($json, true); if (!$config) { exit("skip Couldn't json_decode(file_get_contents($FILENAME));"); } $servers = array( "STANDALONE" => "", "STANDALONE_24" => "", "STANDALONE_26" => "", "STANDALONE_30" => "", "STANDALONE_SSL" => "", "STANDALONE_AUTH" => "", "STANDALONE_X509" => "", "STANDALONE_PLAIN" => "", "REPLICASET" => "", "REPLICASET_30" => "", ); $servers = array_merge($servers, $config); def($servers); $consts = array( "DATABASE_NAME" => "phongo", "COLLECTION_NAME" => makeCollectionNameFromFilename($_SERVER["SCRIPT_FILENAME"]), ); def($consts); // These use values from constants defined above $consts = array( "NS" => DATABASE_NAME . "." . COLLECTION_NAME, ); def($consts);