//! ref: composer/src/Composer/Util/Platform.php
use crate::util::ProcessExecutor;
use shirabe_php_shim::{
PHP_ENV, PHP_SERVER, PhpMixed, PhpResource, PregMatches, RuntimeException, defined,
file_exists, file_get_contents, function_exists, getcwd, getenv, ini_get, is_readable,
mb_strlen, php_os_family, php_regex, posix_geteuid, posix_getpwuid, posix_getuid,
preg_is_match, preg_replace_callback, putenv, putenv_clear, realpath, stream_isatty, stripos,
strlen, strtoupper, substr, usleep,
};
use std::sync::Mutex;
/// Platform helper for uniform platform-specific tests.
pub struct Platform;
static IS_VIRTUAL_BOX_GUEST: Mutex