Skip to content
Snippets Groups Projects
Commit 6293a31d authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

bugfix: Looking for “WIN” inside “Darwin” will give positive results.

To put it differently, to avoid OSX machines being identified as windows boxes, “darwin” should be evaluated *before* “win”.
parent 12af2ab1
No related branches found
No related tags found
No related merge requests found
...@@ -31,12 +31,12 @@ class System ...@@ -31,12 +31,12 @@ class System
if (stristr(PHP_OS, 'LINUX')) { if (stristr(PHP_OS, 'LINUX')) {
return self::LINUX; return self::LINUX;
} }
if (stristr(PHP_OS, 'WIN')) {
return self::WINDOWS;
}
if (stristr(PHP_OS, 'DARWIN')) { if (stristr(PHP_OS, 'DARWIN')) {
return self::OSX; return self::OSX;
} }
if (stristr(PHP_OS, 'WIN')) {
return self::WINDOWS;
}
if (stristr(PHP_OS, 'BSD')) { if (stristr(PHP_OS, 'BSD')) {
return self::BSD; return self::BSD;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment