PHP_OS is the system that PHP was built on not what it is currently running on. http://www.php.net/manual/en/function.php-uname.php