title: PHP Warning: Module 'ldap' & 'mysql' already loaded when running PHP at command line
body: <p>I am getting the following errors:</p>
  
  <pre><code>PHP Warning:  Module 'ldap' already loaded in Unknown on line 0
  PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
  </code></pre>
  
  <p>when running the following command at the command line:</p>
  
  <pre><code>php -c /etc/php.ini /path/to/script.php
  </code></pre>
  
  <p><code>/etc/php.ini</code> is the same php.ini that shown in phpinfo().</p>
  
  <p>Any ideas?</p>