Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit b9bd170

Browse files
committed
some modify
1 parent 85136b6 commit b9bd170

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/env/Server.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ public function init()
104104
'os' => PHP_OS,
105105
'osShort' => strtoupper(substr(PHP_OS, 0, 3)),
106106
'isUnix' => $this->isUnix(),
107-
])->set('isWin', $this->get('os') == 'WIN')
108-
->set('isLinux', $this->get('os') == 'LIN');
107+
])->set('isWin', $this->get('osShort') == 'WIN')
108+
->set('isLinux', $this->get('osShort') == 'LIN');
109109
}
110110

111111
/**
@@ -158,7 +158,7 @@ public function isUnix()
158158
{
159159
$unames = array('CYG', 'DAR', 'FRE', 'HP-', 'IRI', 'LIN', 'NET', 'OPE', 'SUN', 'UNI');
160160

161-
return in_array($this->get('os'), $unames);
161+
return in_array($this->get('osShort'), $unames);
162162
}
163163

164164
/**

0 commit comments

Comments
 (0)