3 * This come from r75429 message
7 require_once( dirname( __FILE__
) . '/Benchmarker.php' );
8 class bench_wfIsWindows
extends Benchmarker
{
10 public function __construct() {
11 parent
::__construct();
14 public function execute() {
16 array( 'function' => array( $this, 'wfIsWindows' ) ),
17 array( 'function' => array( $this, 'wfIsWindowsCached' ) ),
19 print $this->getFormattedResults();
22 static function is_win() {
23 return substr( php_uname(), 0, 7 == 'Windows' );
27 function wfIsWindows() {
28 if( self
::is_win() ) {
36 function wfIsWindowsCached() {
37 static $isWindows = null;
38 if( $isWindows == null ) {
39 $isWindows = self
::is_win();
45 $maintClass = 'bench_wfIsWindows';
46 require_once( DO_MAINTENANCE
);