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 return self
::is_win();
32 function wfIsWindowsCached() {
33 static $isWindows = null;
34 if( $isWindows == null ) {
35 $isWindows = self
::is_win();
41 $maintClass = 'bench_wfIsWindows';
42 require_once( DO_MAINTENANCE
);