title: PHP Fatal error: Class 'COM' not found
body: <p>I'm getting this error after upgrading PHP to v. 5.5.1:</p>
  
  <pre><code>Fatal error: Class 'COM' not found in
  C:\inetpub\wwwroot\ndsystems\database_engine\mssql_engine.php on line 184
  </code></pre>
  
  <p>Line 184 in mssql_engine.php file:</p>
  
  <pre><code>$this-&gt;COMConnection = new COM('ADODB.Connection');    //line 184
  try {
      $this-&gt;COMConnection-&gt;Open($connectionString);
      $this-&gt;RetrieveServerVersion();
  } catch (com_exception $e) {
      $this-&gt;lastError = $e-&gt;getMessage();
      $result = false;
  }
  return $result;
  </code></pre>
  
  <p>Environment is Windows 2008 R2 SP1, IIS 7</p>
  
  <p>Things I tried:</p>
  
  <ol>
  <li><p>Added this at the end of php.ini:</p>
  
  <pre><code>[PHP_COM_DOTNET]
  
  extension=php_com_dotnet.dll
  </code></pre></li>
  <li><p>Added <code>extension=php_com_dotnet.dll</code> in [PHP] section of php.ini</p></li>
  <li><p>Rebooted IIS and also rebooted server itself. </p></li>
  <li><p>Downgraded PHP to 5.3.27</p></li>
  </ol>
  
  <p>Nothing seems to work. How do I fix this error?</p>