Page MenuHomeDevCentral

D3024.diff
No OneTemporary

D3024.diff

diff --git a/omnitools/src/OS/CurrentOS.php b/omnitools/src/OS/CurrentOS.php
--- a/omnitools/src/OS/CurrentOS.php
+++ b/omnitools/src/OS/CurrentOS.php
@@ -13,4 +13,8 @@
return strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
}
+ public static function isBSD () : bool {
+ return substr(PHP_OS, -3) === "BSD" || PHP_OS === "DragonFly";
+ }
+
}

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 7, 17:10 (19 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2176581
Default Alt Text
D3024.diff (369 B)

Event Timeline