title: What does YOUR uname say?
body: <p><strong>Short story:</strong> I need to write a PHP script which finds the correct OS type from uname (eg: both <code>wince</code> and <code>winnt</code> would return <code>windows</code>). <a href="https://stackoverflow.com/questions/3948567/accurately-determine-the-type-of-os-php-is-running-on">See here</a> for more info.</p>
  
  <p><strong>Shouldn't this be a community wiki?</strong></p>
  
  <p>Yes but...<a href="https://meta.stackexchange.com/questions/392/should-the-community-wiki-police-be-shut-down">see here</a>.</p>
  
  <p><strong>How to help:</strong> If your OS is not listed below, please run this code and share your findings:</p>
  
  <pre><code>&lt;?php
      echo php_uname();
  ?&gt;
  </code></pre>
  
  <p>Or, in a Unix shell, try</p>
  
  <pre><code>user@host ~ &gt; php -a
  
  php &gt; echo php_uname();
  </code></pre>
  
  <p><strong>List of shared results</strong></p>
  
  <ul>
  <li>Darwin ... 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386</li>
  <li>Darwin ... 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386</li>
  <li>Windows NT ... 6.1 build 7600</li>
  <li>Linux ... 2.6.24-24-xen #1 SMP Tue Aug 18 18:15:39 UTC 2009 x86_64</li>
  <li>Linux ... 2.6.34.7-56.fc13.x86_64 #1 SMP Wed Sep 15 03:36:55 UTC 2010 x86_64</li>
  <li>Linux ... 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686</li>
  <li>Windows NT ... 5.1 build 2600</li>
  <li>Windows NT ... 6.0 build 6002 (Windows Server 2008 Standard Edition Service Pack 2) i586</li>
  <li>Windows NT ... 6.1 build 7600 ((null)) i586</li>
  </ul>
  
  <p>It's interesting to note that even when certain conditions match exactly, uname still produces different results.</p>