title: Class 'mysqli' not found
body: <p>I understand that this question is asked multiple times here but my scenario is a bit different because I have compiled php5.</p>
  
  <p>I configured php with <code>--with-mysqli=mysqlnd</code> option and the output of the command : <br /></p>
  
  <pre><code> cat php.ini | grep extension 
  </code></pre>
  
  <p>gave me below results.</p>
  
  <pre><code>extension_dir = "/usr/local/lib/php/extensions/no-debug-zts-20121212/"
  extension=imap.so
  extension=mysqli.so
  extension=mysqlnd.so
  extension=pdo_mysql.so
  </code></pre>
  
  <p>Also, the the listing of the files using </p>
  
  <pre><code>sudo ls -l /usr/local/lib/php/extensions/no-debug-zts-20121212/
  </code></pre>
  
  <p>gave me below results.</p>
  
  <pre><code>total 1312
  -rwxr-xr-x 1 root root 302845 Mar 14 19:20 imap.so
  -rwxr-xr-x 1 root root 127672 Mar 15 00:08 mysqli.so
  -rwxr-xr-x 1 root root 196760 Mar 15 00:08 mysqlnd.so
  -rwxr-xr-x 1 root root  47168 Mar 15 00:08 mysql.so
  -rwxr-xr-x 1 root root 522240 Mar 14 12:57 opcache.so
  -rwxr-xr-x 1 root root  26960 Mar 15 00:09 pdo_mysql.so
  -rwxr-xr-x 1 root root 104808 Mar 15 00:09 pdo.so
  </code></pre>
  
  <p>Having this configuration, I still ran into the following error:</p>
  
  <pre><code> [Sat Mar 14 23:49:37.520219 2015] [:error] [pid 8142:tid   
   140418847074048] [client 127.0.0.1:34142] PHP Fatal error: Class   
   'mysqli' not found in /var/www/warmmail/db_fns.php on line 5
  </code></pre>
  
  <p>Now to test if mysqli is loaded I put the following code in one of my
  landing pages :</p>
  
  <pre><code>&lt;?php
  echo 'Loaded .ini file is : '.php_ini_loaded_file();
  echo '&lt;br /&gt;&lt;br /&gt;Function sets supported in this install are:&lt;br /&gt;';
  $extensions = get_loaded_extensions();
  foreach($extensions as $each_ext)
  {
  echo "$each_ext&lt;br /&gt;";
  echo '&lt;ul&gt;';
  $ext_funcs=get_extension_funcs($each_ext);
  foreach($ext_funcs as $func)
  {
  echo "&lt;li&gt;$func&lt;/li&gt;";
  }
  echo '&lt;/ul&gt;';
  }
  ?&gt;
  </code></pre>
  
  <p>and I got the below output (only excerpts shown as it is a big list)</p>
  
  <pre><code>          o
            o
            o
      posix_get_last_error
      posix_errno
      posix_strerror
      posix_initgroups
  
  Reflection
  
  mysqlnd
  
  shmop
  
      shmop_open
      shmop_read
      shmop_close
      shmop_size
      shmop_write
      shmop_delete
            o
            o
            o
  </code></pre>
  
  <p>As we can see the mysql native driver(mysqlnd) is loaded but the mysqli extension and its functions(**which I am looking for)**is not loaded.<br></p>
  
  <p><strong>Edit 1</strong></p>
  
  <pre><code>   php -i | grep -n mysqli
  </code></pre>
  
  <p>gave the below result.</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20121212/mysqli.so' - /usr/local/lib/php/extensions/no-debug-zts-20121212/mysqli.so: undefined symbol: core_globals in Unknown on line 0
  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20121212/mysqlnd.so' - /usr/local/lib/php/extensions/no-debug-zts-20121212/mysqlnd.so: undefined symbol: core_globals in Unknown on line 0
  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20121212/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-zts-20121212/pdo_mysql.so: undefined symbol: core_globals in Unknown on line 0
  </code></pre>
  
  <p>What should I do get the mysqli up and running?</p>