php-os-detector
php-os-detector copied to clipboard
Use php_uname() instead of PHP_OS
Please note that PHP_OS returns the Operating System where the PHP executable was built. While in most cases this is equally to the runtime OS, this returns an invalid value if the php interpreter was cross built on another Operating System.
http://php.net/manual/de/function.php-uname.php