title: php_oci8_11g.dll is not a valid Win32 application
body: <p>This topic has been asked several times, but every solution is not working in my machine.</p>
  
  <p>I am trying to connect windows 7 with a 10G oracle dabatase, but the oci extension is not loaded. Here some facts:</p>
  
  <p><code>C:\php&gt;php -m</code></p>
  
  <blockquote>
    <p>PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php\ext\php_oci8_11g.dll' - %1 is not a valid Win32 application.</p>
  </blockquote>
  
  <p><code>C:\php&gt;php -v</code></p>
  
  <pre><code>PHP 5.6.19 (cli) (built: Mar  2 2016 20:09:42)
  Copyright (c) 1997-2016 The PHP Group
  Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
  </code></pre>
  
  <ul>
  <li>64x architecture</li>
  <li>TS VC11</li>
  </ul>
  
  <p><code>C:\&gt;tnsping localdb</code></p>
  
  <pre><code>TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 02-AUG-2
  016 22:37:50
  </code></pre>
  
  <p>Troubleshooting</p>
  
  <ul>
  <li>I am using <a href="https://pecl.php.net/package/oci8/2.0.11/windows" rel="noreferrer">oci8 2.0.11</a>. Dropped them in <code>ext/</code> folded. The rest of extesions are loaded pretty good.</li>
  <li>PATH variable contains the ORACLE_HOME and php path</li>
  <li><p>Just looked up for required oracle dll files and they are there:</p>
  
  <p><code>C:\&gt;where oci*</code></p>
  
  <pre><code>C:\oracle\product\10.2.0\db_2\BIN\oci.dll
  C:\oracle\product\10.2.0\db_2\BIN\ocijdbc10.dll
  C:\oracle\product\10.2.0\db_2\BIN\ociw32.dll
  </code></pre></li>
  <li>Oracle Client is not required in my side because the database is installed in the same machine, and it install all the required libraries </li>
  </ul>
  
  <p>What other thing am I missing? Thank you in advance</p>