本文整理匯總了PHP中pts_client::program_requirement_checks方法的典型用法代碼示例。如果您正苦於以下問題:PHP pts_client::program_requirement_checks方法的具體用法?PHP pts_client::program_requirement_checks怎麽用?PHP pts_client::program_requirement_checks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pts_client
的用法示例。
在下文中一共展示了pts_client::program_requirement_checks方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setlocale
}
}
require PTS_PATH . 'pts-core/pts-core.php';
if (!PTS_IS_CLIENT) {
// pts-core is acting as a library, return now since no need to run client code
return;
}
// Default to C locale
setlocale(LC_ALL, 'C');
// Needed for shutdown functions
// declare(ticks = 1);
$sent_command = strtolower(str_replace('-', '_', isset($argv[1]) ? $argv[1] : null));
$quick_start_options = array('dump_possible_options');
pts_define('QUICK_START', in_array($sent_command, $quick_start_options));
if (QUICK_START == false) {
pts_client::program_requirement_checks(true);
}
pts_client::init();
// Initalize the Phoronix Test Suite (pts-core) client
$pass_args = array();
if (is_file(PTS_PATH . 'pts-core/commands/' . $sent_command . '.php') == false) {
$replaced = false;
if (pts_module::valid_run_command($sent_command)) {
$replaced = true;
} else {
if (isset($argv[1]) && strpos($argv[1], '.openbenchmarking') !== false && is_readable($argv[1])) {
$sent_command = 'openbenchmarking_launcher';
$argv[2] = $argv[1];
$argc = 3;
$replaced = true;
} else {