title: how to install gmp for php on macOS Sierra?
body: <p>So far this is what I have done:</p>
  
  <pre><code>brew install homebrew/php/php70-gmp
  </code></pre>
  
  <p><code>php -i | grep gmp</code> gives me this output:</p>
  
  <pre><code>Additional .ini files parsed =&gt; /usr/local/etc/php/7.0/conf.d/ext-gmp.ini
  gmp
  gmp support =&gt; enabled
  </code></pre>
  
  <p>Yet, <code>phpinfo</code> is not showing up the gmp module and on using <code>gmp_init</code> command in my code, I am getting this error:</p>
  
  <pre><code>Fatal error: Uncaught Error: Call to undefined function gmp_init() 
  </code></pre>
  
  <p>Any clues to what am I missing here?</p>
  
  <p>EDIT: Additionally: </p>
  
  <p><code>Loaded Configuration File</code> (in phpinfo) : <code>/Applications/XAMPP/xamppfiles/etc/php.ini</code>. </p>
  
  <p>But running 
  <code>which php</code> gives me: <code>/usr/local/bin/php</code>. </p>
  
  <p>and <code>php --ini</code> gives me: 
  <code>Configuration File (php.ini) Path: /usr/local/etc/php/7.0
  Loaded Configuration File:         /usr/local/etc/php/7.0/php.ini
  Scan for additional .ini files in: /usr/local/etc/php/7.0/conf.d
  Additional .ini files parsed:      /usr/local/etc/php/7.0/conf.d/ext-gmp.ini</code></p>