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
Wed, Jun 18, 17:14 (6 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2738516
Default Alt Text
D3024.diff (369 B)

Event Timeline